PurpleStorm95 commited on
Commit
6b2da85
·
verified ·
1 Parent(s): f5826ee

magic eight ball

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -2,8 +2,12 @@ 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)
 
 
 
 
9
  chatbot.launch()
 
2
  import random
3
 
4
  def random_response(message, history):
5
+ response_options = ["yes", "no", "maybe", "try again"]
6
  return random.choice(response_options)
7
 
8
+ chatbot = gr.ChatInterface(random_response)(
9
+ respond,
10
+ title = "Magic Eight Ball",
11
+ description - "I can predict your future!"
12
+ )
13
  chatbot.launch()