fionasu commited on
Commit
cfab39d
·
verified ·
1 Parent(s): ef1c2e9

added the eightball function

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -8,6 +8,10 @@ def echo(message, history):
8
 
9
  def yesOrNo(message, history):
10
  return random.choice(["yes", "no"])
 
 
 
 
11
 
12
  chatbot = gr.ChatInterface(yesOrNo, type = 'messages')
13
  chatbot.launch()
 
8
 
9
  def yesOrNo(message, history):
10
  return random.choice(["yes", "no"])
11
+
12
+ def eightBall(message, history):
13
+ return random.choice(["It is certain", "Without a doubt", "Yes", "Yes, definitely", "Most likely", "Don't count on it", "My reply is no", "no", "Outlook not so good", "Very doubtful.", "Ask again later",
14
+ "Cannot predict now"])
15
 
16
  chatbot = gr.ChatInterface(yesOrNo, type = 'messages')
17
  chatbot.launch()