mingbaer commited on
Commit
2dd268d
·
verified ·
1 Parent(s): 3809442

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -1,14 +1,17 @@
1
  import gradio as gr
2
  import random
3
 
4
- def yes_or_no(message, history):
5
- return random.choice(['yes', 'no'])
 
 
 
6
 
7
  # def echo(message, history):
8
  # return message
9
 
10
  print("Hello, world!")
11
 
12
- chatbot = gr.ChatInterface(yes_or_no, type="messages")
13
 
14
  chatbot.launch()
 
1
  import gradio as gr
2
  import random
3
 
4
+ def eight_ball(message, history):
5
+ return random.choice(['Try again later!', 'Not so fast...', "It's lookin good babe!"])
6
+
7
+ # def yes_or_no(message, history):
8
+ # return random.choice(['yes', 'no'])
9
 
10
  # def echo(message, history):
11
  # return message
12
 
13
  print("Hello, world!")
14
 
15
+ chatbot = gr.ChatInterface(eight_ball, type="messages")
16
 
17
  chatbot.launch()