Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -38,7 +38,7 @@ def predict(text, seed, out_seq_length, min_gen_length, sampling_strategy,
|
|
| 38 |
|
| 39 |
print(response.json())
|
| 40 |
|
| 41 |
-
answer =
|
| 42 |
if isinstance(answer, list):
|
| 43 |
answer = answer[0]
|
| 44 |
|
|
|
|
| 38 |
|
| 39 |
print(response.json())
|
| 40 |
|
| 41 |
+
answer = response.json()['result']['output']['raw']
|
| 42 |
if isinstance(answer, list):
|
| 43 |
answer = answer[0]
|
| 44 |
|