Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -180,7 +180,7 @@ def image_to_3d(
|
|
| 180 |
return state, video_path
|
| 181 |
|
| 182 |
|
| 183 |
-
@spaces.GPU(duration=
|
| 184 |
def extract_glb(
|
| 185 |
state: dict,
|
| 186 |
mesh_simplify: float,
|
|
@@ -293,8 +293,8 @@ with gr.Blocks(delete_cache=(600, 600)) as demo:
|
|
| 293 |
generate_btn = gr.Button("Generate")
|
| 294 |
|
| 295 |
with gr.Accordion(label="GLB Extraction Settings", open=False):
|
| 296 |
-
mesh_simplify = gr.Slider(0
|
| 297 |
-
texture_size = gr.Slider(512,
|
| 298 |
|
| 299 |
with gr.Row():
|
| 300 |
extract_glb_btn = gr.Button("Extract GLB", interactive=False)
|
|
|
|
| 180 |
return state, video_path
|
| 181 |
|
| 182 |
|
| 183 |
+
@spaces.GPU(duration=30)
|
| 184 |
def extract_glb(
|
| 185 |
state: dict,
|
| 186 |
mesh_simplify: float,
|
|
|
|
| 293 |
generate_btn = gr.Button("Generate")
|
| 294 |
|
| 295 |
with gr.Accordion(label="GLB Extraction Settings", open=False):
|
| 296 |
+
mesh_simplify = gr.Slider(0, 0.98, label="Simplify", value=0.5, step=0.01)
|
| 297 |
+
texture_size = gr.Slider(512, 4096, label="Texture Size", value=4096, step=512)
|
| 298 |
|
| 299 |
with gr.Row():
|
| 300 |
extract_glb_btn = gr.Button("Extract GLB", interactive=False)
|