Alisa-Leung commited on
Commit
bc6935b
·
verified ·
1 Parent(s): ef4f874

Random response

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
  chatbot.launch()
 
1
  import gradio as gr
2
+ import random as rand
3
 
4
+ def respond(message, history):
5
+ return rand.choice(["Yes", "No"])
6
 
7
  chatbot = gr.ChatInterface(echo)
8
  chatbot.launch()