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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -4,7 +4,8 @@ import random
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()
 
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()