Heta111 commited on
Commit
ef0581a
·
verified ·
1 Parent(s): 237d95e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -4,10 +4,12 @@ import random
4
 
5
  # def echo(message, history):
6
  # return message
7
- def yes_or_no(message, history):
8
- return random.choice(['Yes', 'No'])
 
 
9
 
10
  print("Hello World!")
11
- chatbot = gr.ChatInterface(yes_or_no, type="messages")
12
 
13
  chatbot.launch()
 
4
 
5
  # def echo(message, history):
6
  # return message
7
+ # def yes_or_no(message, history):
8
+ # return random.choice(['Yes', 'No'])
9
+ def magic_ball(message, history):
10
+ return random.choice(['Try Again', 'Maybe', 'In The Future', 'Absolutely'])
11
 
12
  print("Hello World!")
13
+ chatbot = gr.ChatInterface(magic_ball, type="messages")
14
 
15
  chatbot.launch()