trinity-tandon commited on
Commit
17d59e8
·
verified ·
1 Parent(s): 987a72f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -3,7 +3,7 @@ import random
3
 
4
  def echo(message, history):
5
  choices = ["yes", "no"]
6
- yes_or_no = int(choices[random.random()])
7
  return yes_or_no
8
 
9
  chatbot = gr.ChatInterface(echo, type = "message")
 
3
 
4
  def echo(message, history):
5
  choices = ["yes", "no"]
6
+ yes_or_no = random.choice(choices)
7
  return yes_or_no
8
 
9
  chatbot = gr.ChatInterface(echo, type = "message")