RithikaChalam commited on
Commit
d69c39b
·
verified ·
1 Parent(s): a7490ff

debug yes_or_no()

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