svarshney25 commited on
Commit
3150159
·
verified ·
1 Parent(s): 6c1adcb

Update app.py

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