anna1au commited on
Commit
efc528d
·
verified ·
1 Parent(s): cf60c02

Added a magic 8 ball function

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -4,6 +4,9 @@ import random
4
  def yes_or_no(message, history):
5
  return random.choice(["Yes","No"])
6
 
 
 
 
7
  print ("Hello, world!")
8
- chatBot = gr.ChatInterface(yes_or_no, type = "messages")
9
  chatBot.launch()
 
4
  def yes_or_no(message, history):
5
  return random.choice(["Yes","No"])
6
 
7
+ def magic8(message, history):
8
+ return random.choice(["Maybe... Let's see your luck!", "Of course! Don't even doubt it.", "Of course NOT! There's no chance!", "Try again", "Never in a billion years", "Is the sky blue?"])
9
+
10
  print ("Hello, world!")
11
+ chatBot = gr.ChatInterface(magic8, type = "messages")
12
  chatBot.launch()