Bea4uty commited on
Commit
cec24d0
·
verified ·
1 Parent(s): 75450e7

added changes

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