Spaces:
Running
Running
Amit
commited on
Commit
·
e02126a
1
Parent(s):
916081e
Fix: Assign theme as property to support older Gradio versions
Browse files
app.py
CHANGED
|
@@ -634,14 +634,14 @@ function refresh() {
|
|
| 634 |
# Build the Gradio app
|
| 635 |
demo = gr.Blocks(
|
| 636 |
title="Pip - Emotional AI Companion",
|
| 637 |
-
theme=gr.themes.Soft(
|
| 638 |
-
primary_hue="indigo",
|
| 639 |
-
secondary_hue="teal",
|
| 640 |
-
radius_size="lg",
|
| 641 |
-
font=["Nunito", "sans-serif"]
|
| 642 |
-
),
|
| 643 |
js=JS_DARK_MODE
|
| 644 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 645 |
|
| 646 |
with demo:
|
| 647 |
# Inject CSS
|
|
|
|
| 634 |
# Build the Gradio app
|
| 635 |
demo = gr.Blocks(
|
| 636 |
title="Pip - Emotional AI Companion",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 637 |
js=JS_DARK_MODE
|
| 638 |
)
|
| 639 |
+
demo.theme = gr.themes.Soft(
|
| 640 |
+
primary_hue="indigo",
|
| 641 |
+
secondary_hue="teal",
|
| 642 |
+
radius_size="lg",
|
| 643 |
+
font=["Nunito", "sans-serif"]
|
| 644 |
+
)
|
| 645 |
|
| 646 |
with demo:
|
| 647 |
# Inject CSS
|