fjassim commited on
Commit
b49060f
·
verified ·
1 Parent(s): d005ab2

Update app.py

Browse files

changed echo to respond yes or no randomly

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