RithikaChalam commited on
Commit
d60a744
·
verified ·
1 Parent(s): 892717b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -3,8 +3,8 @@ import random
3
 
4
  answers = ["yes", "no"]
5
 
6
- def yes_or_no():
7
  return random.answers
8
 
9
- chatbot = gr.ChatInterface(yes_or_no)
10
  chatbot.launch()
 
3
 
4
  answers = ["yes", "no"]
5
 
6
+ def yes_or_no(messages):
7
  return random.answers
8
 
9
+ chatbot = gr.ChatInterface(yes_or_no, type="messages")
10
  chatbot.launch()