Spaces:
Sleeping
Sleeping
github-actions[bot]
commited on
Commit
·
782f718
1
Parent(s):
575f46f
Deploy from GitHub - 2026-01-21 06:23:51
Browse files- app.py +2 -8
- requirements.txt +2 -1
app.py
CHANGED
|
@@ -1596,14 +1596,10 @@ def apply_region_style_ui(
|
|
| 1596 |
return result, mask_overlay
|
| 1597 |
|
| 1598 |
|
| 1599 |
-
def refresh_styles_list():
|
| 1600 |
"""Refresh styles list including custom styles."""
|
| 1601 |
custom = get_custom_styles()
|
| 1602 |
-
|
| 1603 |
-
|
| 1604 |
-
# Update dropdown choices
|
| 1605 |
-
choices = style_list
|
| 1606 |
-
return gr.update(choices=choices, value=choices[0] if choices else 'candy')
|
| 1607 |
|
| 1608 |
|
| 1609 |
def get_style_description(style: str) -> str:
|
|
@@ -1841,8 +1837,6 @@ with gr.Blocks(
|
|
| 1841 |
radius_size="lg",
|
| 1842 |
),
|
| 1843 |
css=custom_css,
|
| 1844 |
-
delete_cache=(0, 0),
|
| 1845 |
-
analytics_enabled=False,
|
| 1846 |
) as demo:
|
| 1847 |
|
| 1848 |
# Header with Portal-style hero section
|
|
|
|
| 1596 |
return result, mask_overlay
|
| 1597 |
|
| 1598 |
|
| 1599 |
+
def refresh_styles_list() -> list:
|
| 1600 |
"""Refresh styles list including custom styles."""
|
| 1601 |
custom = get_custom_styles()
|
| 1602 |
+
return list(STYLES.keys()) + custom
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1603 |
|
| 1604 |
|
| 1605 |
def get_style_description(style: str) -> str:
|
|
|
|
| 1837 |
radius_size="lg",
|
| 1838 |
),
|
| 1839 |
css=custom_css,
|
|
|
|
|
|
|
| 1840 |
) as demo:
|
| 1841 |
|
| 1842 |
# Header with Portal-style hero section
|
requirements.txt
CHANGED
|
@@ -1,7 +1,8 @@
|
|
| 1 |
# Core dependencies for StyleForge Hugging Face Space
|
| 2 |
torch>=2.0.0
|
| 3 |
torchvision>=0.15.0
|
| 4 |
-
gradio
|
|
|
|
| 5 |
huggingface_hub>=0.23.0
|
| 6 |
spaces>=0.30.0
|
| 7 |
Pillow>=9.5.0
|
|
|
|
| 1 |
# Core dependencies for StyleForge Hugging Face Space
|
| 2 |
torch>=2.0.0
|
| 3 |
torchvision>=0.15.0
|
| 4 |
+
gradio>=5.16.0
|
| 5 |
+
gradio_client>=1.8.0
|
| 6 |
huggingface_hub>=0.23.0
|
| 7 |
spaces>=0.30.0
|
| 8 |
Pillow>=9.5.0
|