aditijuluri commited on
Commit
b8a78f8
·
verified ·
1 Parent(s): e2632a4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -1,6 +1,13 @@
1
  import gradio as gr
 
2
 
3
  def echo(message, history):
4
  return(message)
5
- chatbot = gr.ChatInterface(echo)
 
 
 
 
 
 
6
  chatbot.launch()
 
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(yes_no, type="messages")
12
+
13
  chatbot.launch()