clarissah commited on
Commit
800b701
·
verified ·
1 Parent(s): 0031bdd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -4,8 +4,8 @@ import random
4
  def echo(message, history):
5
  choices = ["yes", "no"]
6
  #use random to select one of these choices
7
- print(f{random.choice(choices)})
8
- return message
9
 
10
  chatbot = gr.ChatInterface(echo, type = "messages")
11
 
 
4
  def echo(message, history):
5
  choices = ["yes", "no"]
6
  #use random to select one of these choices
7
+ random_message = random.choice(choices)
8
+ return random_message
9
 
10
  chatbot = gr.ChatInterface(echo, type = "messages")
11