Sadmo commited on
Commit
ec39b2e
·
verified ·
1 Parent(s): a888f4f

Fixed errors

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