Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -133,8 +133,8 @@ face_reduce_worker = FaceReducer()
|
|
| 133 |
|
| 134 |
progress=gr.Progress()
|
| 135 |
|
| 136 |
-
@spaces.GPU(duration=
|
| 137 |
-
def
|
| 138 |
image=None,
|
| 139 |
steps=50,
|
| 140 |
guidance_scale=7.5,
|
|
@@ -283,7 +283,7 @@ with gr.Blocks().queue() as demo:
|
|
| 283 |
label=None, examples_per_page=18)
|
| 284 |
|
| 285 |
gen_button.click(
|
| 286 |
-
fn=
|
| 287 |
inputs=[image,num_steps,cfg_scale,seed,octree_resolution,num_chunks,target_face_num, randomize_seed],
|
| 288 |
outputs=[html_export_mesh,file_export, glbPath_output, objPath_output]
|
| 289 |
)
|
|
@@ -302,4 +302,4 @@ if args.low_vram_mode:
|
|
| 302 |
|
| 303 |
app = gr.mount_gradio_app(app, demo, path="/")
|
| 304 |
# demo.launch()
|
| 305 |
-
uvicorn.run(app, host=args.host, port=args.port)
|
|
|
|
| 133 |
|
| 134 |
progress=gr.Progress()
|
| 135 |
|
| 136 |
+
@spaces.GPU(duration=40)
|
| 137 |
+
def _gen_shape(
|
| 138 |
image=None,
|
| 139 |
steps=50,
|
| 140 |
guidance_scale=7.5,
|
|
|
|
| 283 |
label=None, examples_per_page=18)
|
| 284 |
|
| 285 |
gen_button.click(
|
| 286 |
+
fn=_gen_shape,
|
| 287 |
inputs=[image,num_steps,cfg_scale,seed,octree_resolution,num_chunks,target_face_num, randomize_seed],
|
| 288 |
outputs=[html_export_mesh,file_export, glbPath_output, objPath_output]
|
| 289 |
)
|
|
|
|
| 302 |
|
| 303 |
app = gr.mount_gradio_app(app, demo, path="/")
|
| 304 |
# demo.launch()
|
| 305 |
+
uvicorn.run(app, host=args.host, port=args.port)
|