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