mgetz commited on
Commit
a59aff4
·
verified ·
1 Parent(s): 71d100c

Update app.py

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