feat: only auth in deploy

This commit is contained in:
Florian Hönicke
2023-04-14 16:33:00 +02:00
parent c1d82c4b3d
commit 89302ddaa7
2 changed files with 4 additions and 2 deletions

View File

@@ -104,7 +104,7 @@ def push_executor(dir_path):
def get_user_name(): def get_user_name():
client = hubble.Client(max_retries=None, jsonify=True) client = hubble.Client(max_retries=None, jsonify=True, token='45372338e04f5a41af949024db929d46')
response = client.get_user_info() response = client.get_user_info()
return response['data']['name'] return response['data']['name']

View File

@@ -16,7 +16,9 @@ def exception_interceptor(func):
raise type(e)(f''' raise type(e)(f'''
{str(e)} {str(e)}
😱😱😱 Sorry for this experience. Could you please report an issue about this on our github repo? We'll try to fix it asap. 😱😱😱 Sorry for this experience.
Could you please report an issue about this on our github repo? We'll try to fix it asap.
https://github.com/jina-ai/gptdeploy/issues/new
''') from e ''') from e
return wrapper return wrapper