Emma-KWK-08 commited on
Commit
738d773
·
verified ·
1 Parent(s): 335a93f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -3
app.py CHANGED
@@ -1,8 +1,13 @@
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
+ import random
3
 
4
+ def magic_8_ball(message, history):
5
+ return random.choice(['Yes', 'No','Maybe','Probably not..','For sure!' ])
6
 
7
+ #def echo(message, history):
8
+ # return message
9
+
10
+ print("Hello!")
11
+ chatbot = gr.ChatInterface(yes_or_no, type='messages')
12
 
13
  chatbot.launch()