trinity-tandon commited on
Commit
e74ce7a
·
verified ·
1 Parent(s): 3ad0ce8

another try

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