Vishwas1 commited on
Commit
f27eb36
1 Parent(s): d085a03

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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"+response.status_code
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