Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -175,11 +175,7 @@ _DESCRIPTION = '''
|
|
| 175 |
- **Educational Demos**: Convert flat diagrams to 3D for better spatial understanding
|
| 176 |
'''
|
| 177 |
|
| 178 |
-
block = gr.Blocks(title=_TITLE
|
| 179 |
-
.container { max-width: 1200px; margin: auto; padding: 20px; }
|
| 180 |
-
h1 { text-align: center; color: #1976d2; }
|
| 181 |
-
.examples-gallery { margin-top: 30px; }
|
| 182 |
-
""").queue()
|
| 183 |
|
| 184 |
with block:
|
| 185 |
with gr.Row():
|
|
@@ -193,8 +189,7 @@ with block:
|
|
| 193 |
# input image
|
| 194 |
input_image = gr.Image(
|
| 195 |
label="📷 Upload Image",
|
| 196 |
-
type="filepath"
|
| 197 |
-
elem_classes="input-image"
|
| 198 |
)
|
| 199 |
seg_image = gr.Image(
|
| 200 |
label="🔍 Processed Image",
|
|
@@ -276,8 +271,7 @@ with block:
|
|
| 276 |
# glb file
|
| 277 |
output_model = gr.Model3D(
|
| 278 |
label="🎭 3D Model Preview",
|
| 279 |
-
height=512
|
| 280 |
-
elem_classes="model-viewer"
|
| 281 |
)
|
| 282 |
gr.Markdown("""
|
| 283 |
### 📌 Controls:
|
|
@@ -304,8 +298,7 @@ with block:
|
|
| 304 |
fn=process_image,
|
| 305 |
inputs=[input_image],
|
| 306 |
outputs=[seg_image],
|
| 307 |
-
cache_examples=False
|
| 308 |
-
elem_classes="examples-gallery"
|
| 309 |
)
|
| 310 |
|
| 311 |
gr.Markdown("""
|
|
|
|
| 175 |
- **Educational Demos**: Convert flat diagrams to 3D for better spatial understanding
|
| 176 |
'''
|
| 177 |
|
| 178 |
+
block = gr.Blocks(title=_TITLE).queue()
|
|
|
|
|
|
|
|
|
|
|
|
|
| 179 |
|
| 180 |
with block:
|
| 181 |
with gr.Row():
|
|
|
|
| 189 |
# input image
|
| 190 |
input_image = gr.Image(
|
| 191 |
label="📷 Upload Image",
|
| 192 |
+
type="filepath"
|
|
|
|
| 193 |
)
|
| 194 |
seg_image = gr.Image(
|
| 195 |
label="🔍 Processed Image",
|
|
|
|
| 271 |
# glb file
|
| 272 |
output_model = gr.Model3D(
|
| 273 |
label="🎭 3D Model Preview",
|
| 274 |
+
height=512
|
|
|
|
| 275 |
)
|
| 276 |
gr.Markdown("""
|
| 277 |
### 📌 Controls:
|
|
|
|
| 298 |
fn=process_image,
|
| 299 |
inputs=[input_image],
|
| 300 |
outputs=[seg_image],
|
| 301 |
+
cache_examples=False
|
|
|
|
| 302 |
)
|
| 303 |
|
| 304 |
gr.Markdown("""
|