matchalover commited on
Commit
c0f0a9a
·
verified ·
1 Parent(s): 7a62cb1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -5
app.py CHANGED
@@ -1,9 +1,11 @@
1
- import gradio as gr
 
 
 
2
 
3
  def echo (message, history):
4
- # print('Hello, world!') example
5
- print(message)
6
- print(history)
7
- return message
8
  chatbot = gr.ChatInterface(echo, type = 'messages')
9
  chatbot.launch()
 
1
+ import gradio as gr
2
+ import random
3
+
4
+ yes_or_no = ["Yes", "No"]
5
 
6
  def echo (message, history):
7
+ print(random.choices(yes_or_no))
8
+ return message
9
+
 
10
  chatbot = gr.ChatInterface(echo, type = 'messages')
11
  chatbot.launch()