sarahrobe commited on
Commit
79ba964
·
verified ·
1 Parent(s): ecc805f

Magic 8 Ball

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -2,8 +2,9 @@ import gradio as gr
2
  import random
3
 
4
  def respond(message, history):
5
- return random.choice(["Yes", "No"])
 
6
 
7
- chatbot = gr.ChatInterface(echo)
8
 
9
  chatbot.launch()
 
2
  import random
3
 
4
  def respond(message, history):
5
+ answers = ["Maybe", "Absolutely", "Probs Not", "Unlikely", "It is decidedly so", "Signs point to no"]
6
+ return random.choice(answers)
7
 
8
+ chatbot = gr.ChatInterface(respond)
9
 
10
  chatbot.launch()