Update app.py
Browse files
app.py
CHANGED
|
@@ -6,20 +6,19 @@ from gradio import themes
|
|
| 6 |
|
| 7 |
# --- Custom Theme ---
|
| 8 |
# Create a custom theme object
|
| 9 |
-
#
|
| 10 |
light_dark_theme = themes.Base(
|
| 11 |
-
primary_hue=themes.Color("indigo"),
|
| 12 |
-
secondary_hue=themes.Color("cyan"),
|
| 13 |
-
neutral_hue=themes.Color("gray")
|
| 14 |
).set(
|
| 15 |
-
background_fill_secondary_dark="#222",
|
| 16 |
-
background_fill_secondary_light="#eee",
|
| 17 |
button_primary_background_fill_dark="#4CAF50",
|
| 18 |
button_primary_background_fill_hover_dark="#3e8e41",
|
| 19 |
button_primary_text_color_dark="#fff"
|
| 20 |
)
|
| 21 |
|
| 22 |
-
|
| 23 |
# --- Private Repository Information ---
|
| 24 |
PRIVATE_DATASET_ID = os.getenv("PRIVATE_DATASET_ID")
|
| 25 |
HF_TOKEN = os.getenv("HF_TOKEN")
|
|
|
|
| 6 |
|
| 7 |
# --- Custom Theme ---
|
| 8 |
# Create a custom theme object
|
| 9 |
+
# Corrected Color class usage
|
| 10 |
light_dark_theme = themes.Base(
|
| 11 |
+
primary_hue=themes.colors.Color("indigo"),
|
| 12 |
+
secondary_hue=themes.colors.Color("cyan"),
|
| 13 |
+
neutral_hue=themes.colors.Color("gray")
|
| 14 |
).set(
|
| 15 |
+
background_fill_secondary_dark="#222",
|
| 16 |
+
background_fill_secondary_light="#eee",
|
| 17 |
button_primary_background_fill_dark="#4CAF50",
|
| 18 |
button_primary_background_fill_hover_dark="#3e8e41",
|
| 19 |
button_primary_text_color_dark="#fff"
|
| 20 |
)
|
| 21 |
|
|
|
|
| 22 |
# --- Private Repository Information ---
|
| 23 |
PRIVATE_DATASET_ID = os.getenv("PRIVATE_DATASET_ID")
|
| 24 |
HF_TOKEN = os.getenv("HF_TOKEN")
|