Update app.py
Browse files
app.py
CHANGED
|
@@ -12,12 +12,17 @@ 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("8-Ball-Banner.png")
|
| 18 |
with gr.Row(scale=3):
|
| 19 |
with gr.Column(scale = 1):
|
|
|
|
|
|
|
| 20 |
gr.Image("Cracked_Ball.jpg", show_label = False, show_share_button = False, show_download_button = False)
|
| 21 |
with gr.Column(scale = 2):
|
| 22 |
-
gr.ChatInterface(magic_eight, type="messages", theme="mgetz/Celeb_glitzy"
|
| 23 |
chatbot.launch()
|
|
|
|
| 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 |
+
title = """ # **Spicy** Magic 8-Ball"""
|
| 16 |
+
about_text = """##Ask a question, get an answer"""
|
| 17 |
+
|
| 18 |
with gr.Blocks(theme='mgetz/Celeb_glitzy') as chatbot:
|
| 19 |
with gr.Row(scale=1):
|
| 20 |
gr.Image("8-Ball-Banner.png")
|
| 21 |
with gr.Row(scale=3):
|
| 22 |
with gr.Column(scale = 1):
|
| 23 |
+
gr.Markdown(title):
|
| 24 |
+
gr.Markdown(about_text):
|
| 25 |
gr.Image("Cracked_Ball.jpg", show_label = False, show_share_button = False, show_download_button = False)
|
| 26 |
with gr.Column(scale = 2):
|
| 27 |
+
gr.ChatInterface(magic_eight, type="messages", theme="mgetz/Celeb_glitzy")
|
| 28 |
chatbot.launch()
|