Cass13 commited on
Commit
55ffdf0
·
verified ·
1 Parent(s): 75829e1
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -6,8 +6,11 @@ import random
6
  #def echo(message, history):
7
  # return message #making an echo ting
8
 
9
- def yes_or_no(message, history):
10
- return random.choice(["Yes", "No"])
11
 
12
- chatbot = gr.ChatInterface(yes_or_no, type="messages") #defining my chatbot so user can interact
 
 
 
13
  chatbot.launch()
 
6
  #def echo(message, history):
7
  # return message #making an echo ting
8
 
9
+ #def yes_or_no(message, history):
10
+ # return random.choice(["Yes", "No"])
11
 
12
+ def eight_ball(message, history):
13
+ return random.choice(["Yes", "No", "It is looking likely", "If the stars align", "Maybe...", "Cannot confirm or deny", "It is 50/50", "That, I cannot answer"])
14
+
15
+ chatbot = gr.ChatInterface(eight_ball, type="messages") #defining my chatbot so user can interact
16
  chatbot.launch()