Spaces:
Sleeping
Sleeping
Upload 2 files
Browse files- app.py +2 -6
- requirements.txt +1 -1
app.py
CHANGED
|
@@ -15,11 +15,7 @@ from transformers import (
|
|
| 15 |
)
|
| 16 |
|
| 17 |
# ============ THEME SETUP ============
|
| 18 |
-
#
|
| 19 |
-
app_theme = gr.themes.Soft(
|
| 20 |
-
primary_hue="blue",
|
| 21 |
-
secondary_hue="indigo",
|
| 22 |
-
)
|
| 23 |
|
| 24 |
# ============ GLOBAL SETUP ============
|
| 25 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
@@ -463,7 +459,7 @@ custom_js = ""
|
|
| 463 |
# 전역 레이어 매니저
|
| 464 |
layer_manager = LayerManager()
|
| 465 |
|
| 466 |
-
with gr.Blocks(
|
| 467 |
with gr.Column(elem_id="col-container"):
|
| 468 |
gr.Markdown("# **SAM3 Layer Segmentation Tool**", elem_id="main-title")
|
| 469 |
gr.Markdown("**Layer-based object separation and area analysis tool** | 1. Create layers 2. Select point mode and click 3. Run segmentation (processes all layers)")
|
|
|
|
| 15 |
)
|
| 16 |
|
| 17 |
# ============ THEME SETUP ============
|
| 18 |
+
# Theme disabled to avoid API schema issues on HF Spaces
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
# ============ GLOBAL SETUP ============
|
| 21 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
|
|
| 459 |
# 전역 레이어 매니저
|
| 460 |
layer_manager = LayerManager()
|
| 461 |
|
| 462 |
+
with gr.Blocks(css=custom_css) as demo:
|
| 463 |
with gr.Column(elem_id="col-container"):
|
| 464 |
gr.Markdown("# **SAM3 Layer Segmentation Tool**", elem_id="main-title")
|
| 465 |
gr.Markdown("**Layer-based object separation and area analysis tool** | 1. Create layers 2. Select point mode and click 3. Run segmentation (processes all layers)")
|
requirements.txt
CHANGED
|
@@ -6,7 +6,7 @@ torchvision
|
|
| 6 |
matplotlib
|
| 7 |
accelerate
|
| 8 |
pillow
|
| 9 |
-
gradio
|
| 10 |
spaces
|
| 11 |
numpy
|
| 12 |
pandas
|
|
|
|
| 6 |
matplotlib
|
| 7 |
accelerate
|
| 8 |
pillow
|
| 9 |
+
gradio<6.0
|
| 10 |
spaces
|
| 11 |
numpy
|
| 12 |
pandas
|