crap
This commit is contained in:
parent
9fc674878d
commit
7eb930fafd
|
@ -11,7 +11,7 @@ def get_running_model():
|
||||||
return False, e
|
return False, e
|
||||||
try:
|
try:
|
||||||
r_json = backend_response.json()
|
r_json = backend_response.json()
|
||||||
return r_json['result']
|
return r_json['result'], None
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
return False, e
|
return False, e
|
||||||
elif opts.mode == 'hf-textgen':
|
elif opts.mode == 'hf-textgen':
|
||||||
|
@ -21,7 +21,7 @@ def get_running_model():
|
||||||
return False, e
|
return False, e
|
||||||
try:
|
try:
|
||||||
r_json = backend_response.json()
|
r_json = backend_response.json()
|
||||||
return r_json['model_id'].replace('/', '_')
|
return r_json['model_id'].replace('/', '_'), None
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
return False, e
|
return False, e
|
||||||
else:
|
else:
|
||||||
|
|
Reference in New Issue