codersoul commited on
Commit
044b701
·
verified ·
1 Parent(s): 6ea2827

Made A Magiv 8 Ball that is added more random responses to the list and also added a title!

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,9 +1,9 @@
1
  import gradio as gr
2
  import random
3
  def random_response(message, history):
4
- response_options = ["yes", "no"]
5
  return random.choice(response_options)
6
 
7
- chatbot = gr.ChatInterface(random_response), title="Random Yes or No Bot"
8
 
9
  chatbot.launch()
 
1
  import gradio as gr
2
  import random
3
  def random_response(message, history):
4
+ response_options = ["yes", "no", "I need more cosmic energy to answer.", "Very doubtful.", "Signs point to yes."]
5
  return random.choice(response_options)
6
 
7
+ chatbot = gr.ChatInterface(random_response, title="Magic 🎱 Chatbot")
8
 
9
  chatbot.launch()