This commit is contained in:
Cyberes 2023-08-23 16:12:25 -06:00
parent 9fc674878d
commit 7eb930fafd
1 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ def get_running_model():
return False, e
try:
r_json = backend_response.json()
return r_json['result']
return r_json['result'], None
except Exception as e:
return False, e
elif opts.mode == 'hf-textgen':
@ -21,7 +21,7 @@ def get_running_model():
return False, e
try:
r_json = backend_response.json()
return r_json['model_id'].replace('/', '_')
return r_json['model_id'].replace('/', '_'), None
except Exception as e:
return False, e
else: