tommy24 commited on
Commit
ecf31c9
·
1 Parent(s): d7d45a3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -253,6 +253,7 @@ def function(Textbox,Textbox2, Textbox3, Textbox4):
253
  "speak": False
254
  }))
255
  # reply = response['choices'][0]['message']['content']
 
256
  reply = response["output"]["text"]
257
  return reply
258
  except Exception as e:
 
253
  "speak": False
254
  }))
255
  # reply = response['choices'][0]['message']['content']
256
+ response = response.json()
257
  reply = response["output"]["text"]
258
  return reply
259
  except Exception as e: