limeiz commited on
Commit
65fdc13
·
verified ·
1 Parent(s): db0a030

Update app.py

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