sarahrobe commited on
Commit
ecc805f
·
verified ·
1 Parent(s): 69c7a76

Changed echo to respond

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -1,7 +1,8 @@
1
  import gradio as gr
 
2
 
3
- def echo(message, history):
4
- return message
5
 
6
  chatbot = gr.ChatInterface(echo)
7
 
 
1
  import gradio as gr
2
+ import random
3
 
4
+ def respond(message, history):
5
+ return random.choice(["Yes", "No"])
6
 
7
  chatbot = gr.ChatInterface(echo)
8