AnaviJoshi commited on
Commit
46a3941
·
verified ·
1 Parent(s): 7e47780

Update app.py

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