Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,30 +14,32 @@ chatbot = gr.ChatInterface(magic_8_ball, title = "Magic 8 Ball", description = "
|
|
| 14 |
#defining my chatbot so users can interact and see their conversation history and send new messages!
|
| 15 |
|
| 16 |
|
| 17 |
-
with gr.Blocks(
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
|
|
|
|
|
|
| 34 |
|
| 35 |
chatbot = gr.ChatInterface(
|
| 36 |
fn=magic_8_ball,
|
| 37 |
title="Magic 8 Ball",
|
| 38 |
description="Let's play magic 8 ball!",
|
| 39 |
type="messages"
|
| 40 |
-
)
|
| 41 |
|
| 42 |
|
| 43 |
chatbot.launch()
|
|
|
|
| 14 |
#defining my chatbot so users can interact and see their conversation history and send new messages!
|
| 15 |
|
| 16 |
|
| 17 |
+
with gr.Blocks(
|
| 18 |
+
theme=gr.themes.Soft(
|
| 19 |
+
primary_hue="purple",
|
| 20 |
+
secondary_hue="fuchsia",
|
| 21 |
+
neutral_hue="gray",
|
| 22 |
+
text_size="lg"
|
| 23 |
+
).set(
|
| 24 |
+
background_fill_primary='*neutral_200',
|
| 25 |
+
background_fill_secondary='*neutral_400',
|
| 26 |
+
background_fill_secondary_dark='*secondary_500',
|
| 27 |
+
border_color_accent='*secondary_400',
|
| 28 |
+
border_color_accent_dark='*secondary_800',
|
| 29 |
+
color_accent='*secondary_300',
|
| 30 |
+
color_accent_soft='*secondary_500',
|
| 31 |
+
color_accent_soft_dark='*secondary_400',
|
| 32 |
+
button_primary_background_fill='*secondary_500',
|
| 33 |
+
button_primary_background_fill_dark='*secondary_600'
|
| 34 |
+
)
|
| 35 |
+
) as chatbot: # This is the correct place for 'as demo'
|
| 36 |
|
| 37 |
chatbot = gr.ChatInterface(
|
| 38 |
fn=magic_8_ball,
|
| 39 |
title="Magic 8 Ball",
|
| 40 |
description="Let's play magic 8 ball!",
|
| 41 |
type="messages"
|
| 42 |
+
)
|
| 43 |
|
| 44 |
|
| 45 |
chatbot.launch()
|