Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -38,6 +38,8 @@ def predict(text, seed, out_seq_length, min_gen_length, sampling_strategy,
|
|
38 |
|
39 |
response = requests.request("POST", url, headers=headers, data=payload)
|
40 |
|
|
|
|
|
41 |
if response.json()['status'] == 1:
|
42 |
return 'Please give smaller text than max_tokens or give larger max_tokens.'
|
43 |
|
|
|
38 |
|
39 |
response = requests.request("POST", url, headers=headers, data=payload)
|
40 |
|
41 |
+
print(response.json())
|
42 |
+
|
43 |
if response.json()['status'] == 1:
|
44 |
return 'Please give smaller text than max_tokens or give larger max_tokens.'
|
45 |
|