mgetz commited on
Commit
861de45
·
verified ·
1 Parent(s): afb7542

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -8,9 +8,12 @@ def yes_no(message, history):
8
  responses = ["Yes", "No"]
9
  return random.choice(responses)
10
 
11
- def yes_no(message, history):
12
- responses = ["Yes", "No"]
13
  return random.choice(responses)
14
 
15
- chatbot = gr.ChatInterface(yes_no, type="messages", theme=gr.themes.Ocean(), title="The Perfect Chatbot")
 
 
 
16
  chatbot.launch()
 
8
  responses = ["Yes", "No"]
9
  return random.choice(responses)
10
 
11
+ def magic_eight(message, history):
12
+ responses = ["That's a terrible question. Try again", "I don't think I should answer that...", "What do you think, genius?", "You are a bad person for asking that.", "Absolutely not", "Uuuuh, obviously.", "Of all the things you could ask, you went with that?", "I don't know, look it up", "I mean, yeah, I guess...", "That's gonna be a big nope", ""]
13
  return random.choice(responses)
14
 
15
+ with gr.Blocks(theme='mgetz/Celeb_glitzy') as chatbot:
16
+ with gr.Row(scale=1):
17
+ gr.Image("Magic_Eight.jpg", show_label = False, show_share_button = False, show_download_button = False)
18
+ gr.ChatInterface(magic_eight, type="messages", theme="mgetz/Celeb_glitzy", title="Sassy Magic 8-Ball")
19
  chatbot.launch()