adough commited on
Commit
469ea32
·
verified ·
1 Parent(s): 7b62e16

eight ball

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -4,10 +4,10 @@ import random
4
  #def echo(message,history)
5
  #return message
6
 
7
- def respond_yes_no_randomly(message, history):
8
- responses = ["yes","no","maybe","can't be determined"]
9
  return random.choice(responses)
10
 
11
- chatbot = gr.ChatInterface(respond_yes_no_randomly, type = "messages", title = "answer bot", description = "this ChatBot answers any yes no question you ask it")
12
 
13
  chatbot.launch()
 
4
  #def echo(message,history)
5
  #return message
6
 
7
+ def eightBall(message, history):
8
+ responses = ["yes","withought a doubt","it is certain","it is decidedly so","yes definetly","most likely","outlook good","as I see it yes","signs point to yes","very doubtful","my reply is no","don't count on it","outlook not so good","better not tell you now","my sources say no","ask again later","reply hazy try again","concentrate and ask again","cannot predict now"]
9
  return random.choice(responses)
10
 
11
+ chatbot = gr.ChatInterface(eightBall, type = "messages", title = "answer bot", description = "this ChatBot answers any yes no question you ask it")
12
 
13
  chatbot.launch()