tommy24 commited on
Commit
7569d93
·
1 Parent(s): 2879413

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -84,8 +84,8 @@ def main(user):
84
  # if chatbot_commands(PROMPT):
85
  # continue
86
  response = chatbot.ask(PROMPT)
87
- print("John: " + response["choices"][0]["text"])
88
- speak(response["choices"][0]["text"])
89
 
90
  iface = gr.Interface(fn=main, inputs="text", outputs="text")
91
  iface.launch()
 
84
  # if chatbot_commands(PROMPT):
85
  # continue
86
  response = chatbot.ask(PROMPT)
87
+ response = "John: " + response["choices"][0]["text"]
88
+ return response
89
 
90
  iface = gr.Interface(fn=main, inputs="text", outputs="text")
91
  iface.launch()