Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -36,7 +36,9 @@ def predict(text, seed, out_seq_length, min_gen_length, sampling_strategy,
|
|
36 |
|
37 |
response = requests.request("POST", url, headers=headers, data=payload)
|
38 |
|
39 |
-
|
|
|
|
|
40 |
if isinstance(answer, list):
|
41 |
answer = answer[0]
|
42 |
|
|
|
36 |
|
37 |
response = requests.request("POST", url, headers=headers, data=payload)
|
38 |
|
39 |
+
print(response.json())
|
40 |
+
|
41 |
+
answer = text.rstrip() + ' ' + response.json()['result']['output']['text']
|
42 |
if isinstance(answer, list):
|
43 |
answer = answer[0]
|
44 |
|