JuanMa360 commited on
Commit
abfc5be
1 Parent(s): fb9d63e

bugfix: format

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -23,7 +23,7 @@ def slow_api_response(message, history):
23
  try:
24
 
25
  response = requests.request("POST", url, headers=headers, data=payload)
26
- api_response = response.json().get("response", "")
27
 
28
  for i in range(len(api_response)):
29
  time.sleep(0.05)
 
23
  try:
24
 
25
  response = requests.request("POST", url, headers=headers, data=payload)
26
+ api_response = response.text
27
 
28
  for i in range(len(api_response)):
29
  time.sleep(0.05)