Skyhighque commited on
Commit
b98a4ef
·
verified ·
1 Parent(s): 7f8cdfb

Practice making an 8 ball

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1,10 +1,10 @@
1
  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 Chatbot")
9
 
10
  chatbot.launch()
 
1
  import gradio as gr
2
  import random
3
 
4
+ def magic_eight_ball(message, history):
5
+ response_options = ["Signs point to yes", "Outlook not so good", "It is certain", "Ask again later", "Don't try it"]
6
  return random.choice(response_options)
7
 
8
+ chatbot = gr.ChatInterface(magic_eight_ball, title = "Magic 8 Ball")
9
 
10
  chatbot.launch()