ipekoruc commited on
Commit
fe478ba
·
verified ·
1 Parent(s): e8795b0
Files changed (1) hide show
  1. app.py +8 -5
app.py CHANGED
@@ -7,11 +7,14 @@ def echo(message, history):
7
  def respond_yes_no_random(message, history):
8
  responses=["Yes", "No"]
9
  return random.choice(responses)
10
-
11
- chatbot = gr.ChatInterface(respond_yes_no_random,
12
- type= "messages", title = "yes or no bot",
13
- description = "its random omg",
14
- theme = "monochrome")
 
 
 
15
 
16
  chatbot.launch()
17
 
 
7
  def respond_yes_no_random(message, history):
8
  responses=["Yes", "No"]
9
  return random.choice(responses)
10
+
11
+ def magic8(message, history):
12
+ responses=["Yes", "No", "Maybe", "Without a doubt", "Most likely", "Try again", "Not sure","Very doubtful"]
13
+ return random.choice(responses)
14
+
15
+ chatbot = gr.ChatInterface(magic8,
16
+ type= "messages", title = "8 ball",
17
+ description = "its random omg")
18
 
19
  chatbot.launch()
20