RithikaChalam commited on
Commit
17d84be
·
verified ·
1 Parent(s): e2cbe5e

yes_or_no()

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