hedy-tang commited on
Commit
cbb37e8
·
verified ·
1 Parent(s): 7a8c709

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -7,5 +7,10 @@ def echo(message, history):
7
  def yes_no(message, history):
8
  responses = ["Yes", "No"]
9
  return (random.choice(responses))
10
- chatbot = gr.ChatInterface(yes_no, description = "Cool chatbot!", type = "messages", title = "Yes/No", theme = "earnleh/paris")
 
 
 
 
 
11
  chatbot.launch()
 
7
  def yes_no(message, history):
8
  responses = ["Yes", "No"]
9
  return (random.choice(responses))
10
+
11
+ def eightBall(message, history):
12
+ responses1 = ["Probably", "Ask me later", "Nah", "I dont know, why ask me?", "Definitely no", "It sounds right"]
13
+ return (random.choice(responses1))
14
+
15
+ chatbot = gr.ChatInterface(eightBall, description = "Cool chatbot!", type = "messages", title = "Yes/No", theme = "earneleh/paris")
16
  chatbot.launch()