Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ def text_generate(prompt):
|
|
24 |
slack_msg = slack_msg+data_str["completions"][i]["completion"]+"\n\n"
|
25 |
slack_msg = slack_msg+data_str["completions"][i]["log_prob"]+"\n\n"
|
26 |
else:
|
27 |
-
slack_msg="Failed to send JSON message to URL"
|
28 |
except requests.exceptions.Timeout:
|
29 |
slack_msg="Failed to send JSON message to URL due to timeout error"
|
30 |
pass
|
|
|
24 |
slack_msg = slack_msg+data_str["completions"][i]["completion"]+"\n\n"
|
25 |
slack_msg = slack_msg+data_str["completions"][i]["log_prob"]+"\n\n"
|
26 |
else:
|
27 |
+
slack_msg="Failed to send JSON message to URL"
|
28 |
except requests.exceptions.Timeout:
|
29 |
slack_msg="Failed to send JSON message to URL due to timeout error"
|
30 |
pass
|