File tree 3 files changed +12
-5
lines changed 3 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 17
17
from starlette .routing import Route
18
18
19
19
from graphql_api import schema
20
- from submodules .model .models import Base
21
- from submodules .model .session import engine
22
20
23
21
logging .basicConfig (level = logging .DEBUG )
24
22
logger = logging .getLogger (__name__ )
25
23
26
24
27
- Base .metadata .create_all (bind = engine )
28
25
routes = [
29
26
Route (
30
27
"/graphql/" ,
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ class ModelProviderQuery(graphene.ObjectType):
13
13
14
14
def resolve_model_provider_info (self , info ) -> List [ModelProviderInfoResult ]:
15
15
auth .check_demo_access (info )
16
- if not misc .check_is_managed :
17
- raise GraphQLError ("Not allowed in open source version." )
16
+ if not misc .check_is_managed ():
17
+ print ("Not allowed in open source version." )
18
+ return []
18
19
return manager .get_model_provider_info ()
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+
4
+ echo -ne ' building container...'
5
+ docker build -t kernai/refinery-gateway:latest -f Dockerfile . # > /dev/null 2>&1
6
+ echo -ne ' \t\t [done]\n'
7
+
8
+ echo -ne ' start refinery like normal (the tag was replaced)'
9
+
You can’t perform that action at this time.
0 commit comments