Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -44,9 +44,8 @@ def predict(text, seed, out_seq_length, min_gen_length, sampling_strategy,
|
|
44 |
except Exception as e:
|
45 |
return 'Timeout! Please wait a few minutes and retry'
|
46 |
|
47 |
-
if response['status'] ==1:
|
48 |
-
|
49 |
-
return response['result']['errmsg']
|
50 |
|
51 |
answer = response['result']['output']['raw']
|
52 |
if isinstance(answer, list):
|
|
|
44 |
except Exception as e:
|
45 |
return 'Timeout! Please wait a few minutes and retry'
|
46 |
|
47 |
+
if response['status'] == 1:
|
48 |
+
return response['message']['errmsg']
|
|
|
49 |
|
50 |
answer = response['result']['output']['raw']
|
51 |
if isinstance(answer, list):
|