Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,9 +8,12 @@ def yes_no(message, history):
|
|
| 8 |
responses = ["Yes", "No"]
|
| 9 |
return random.choice(responses)
|
| 10 |
|
| 11 |
-
def
|
| 12 |
-
responses = ["
|
| 13 |
return random.choice(responses)
|
| 14 |
|
| 15 |
-
|
|
|
|
|
|
|
|
|
|
| 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()
|