Spaces:
Sleeping
Sleeping
Update UI_Design
Browse files
UI_Design
CHANGED
|
@@ -1,17 +1,27 @@
|
|
| 1 |
-
with gr.Blocks(
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
with gr.Blocks(
|
| 2 |
+
theme=gr.themes.Soft(
|
| 3 |
+
primary_hue="purple",
|
| 4 |
+
secondary_hue="fuchsia",
|
| 5 |
+
neutral_hue="gray",
|
| 6 |
+
text_size="lg"
|
| 7 |
+
).set(
|
| 8 |
+
background_fill_primary='*neutral_200',
|
| 9 |
+
background_fill_secondary='neutral_100',
|
| 10 |
+
background_fill_secondary_dark='secondary_500',
|
| 11 |
+
border_color_accent='*secondary_400',
|
| 12 |
+
border_color_accent_dark='*secondary_800',
|
| 13 |
+
color_accent='*secondary_600',
|
| 14 |
+
color_accent_soft='*secondary_200',
|
| 15 |
+
color_accent_soft_dark='*secondary_700',
|
| 16 |
+
button_primary_background_fill='*secondary_100',
|
| 17 |
+
button_primary_background_fill_dark='*secondary_600'
|
| 18 |
+
)
|
| 19 |
+
|
| 20 |
+
) as demo:
|
| 21 |
+
|
| 22 |
+
gr.ChatInterface(
|
| 23 |
+
fn=magic_8_ball,
|
| 24 |
+
title="Magic 8 Ball",
|
| 25 |
+
description="Let's play magic 8 ball!",
|
| 26 |
+
type="messages"
|
| 27 |
+
)
|