ishrat5e commited on
Commit
9c92ea3
·
verified ·
1 Parent(s): 92314cc

Added code to make it into Magic 8 Ball

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -2,10 +2,10 @@ import gradio as gr
2
  import random
3
 
4
  def random_response(message, history):
5
- response_options = ["yes", "no"]
6
  return random.choice(response_options)
7
 
8
- chatbot = gr.ChatInterface(random_response, title = "Random Yes or No Chatobt")
9
 
10
  chatbot.launch()
11
 
 
2
  import random
3
 
4
  def random_response(message, history):
5
+ response_options = ["Points to a big yes!", "Error 404: Answer not found", "Not close", "Ask again", "You have got this!", "Better to pivot your plans", "The stars align for you", "Look forward to it!"]
6
  return random.choice(response_options)
7
 
8
+ chatbot = gr.ChatInterface(random_response, title = "Magic 8 Ball 🔮")
9
 
10
  chatbot.launch()
11