Spaces:
Running on Zero
Running on Zero
Add api_name to run_full_pipeline and pshuman_face for Gradio API access
Browse files
app.py
CHANGED
|
@@ -1745,6 +1745,7 @@ with gr.Blocks(title="Image2Model", theme=gr.themes.Soft()) as demo:
|
|
| 1745 |
fn=gradio_pshuman_face,
|
| 1746 |
inputs=[pshuman_img_input],
|
| 1747 |
outputs=[pshuman_colour_gallery, pshuman_normal_gallery, pshuman_status],
|
|
|
|
| 1748 |
)
|
| 1749 |
|
| 1750 |
# ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
@@ -1891,6 +1892,7 @@ with gr.Blocks(title="Image2Model", theme=gr.themes.Soft()) as demo:
|
|
| 1891 |
],
|
| 1892 |
outputs=[glb_state, download_file, multiview_img,
|
| 1893 |
rig_glb_dl, rig_animated_dl, rig_fbx_dl, status],
|
|
|
|
| 1894 |
).then(
|
| 1895 |
fn=lambda p: (p, p) if p else (None, None),
|
| 1896 |
inputs=[glb_state], outputs=[model_3d, download_file],
|
|
|
|
| 1745 |
fn=gradio_pshuman_face,
|
| 1746 |
inputs=[pshuman_img_input],
|
| 1747 |
outputs=[pshuman_colour_gallery, pshuman_normal_gallery, pshuman_status],
|
| 1748 |
+
api_name="pshuman_face",
|
| 1749 |
)
|
| 1750 |
|
| 1751 |
# ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
|
|
| 1892 |
],
|
| 1893 |
outputs=[glb_state, download_file, multiview_img,
|
| 1894 |
rig_glb_dl, rig_animated_dl, rig_fbx_dl, status],
|
| 1895 |
+
api_name="run_full_pipeline",
|
| 1896 |
).then(
|
| 1897 |
fn=lambda p: (p, p) if p else (None, None),
|
| 1898 |
inputs=[glb_state], outputs=[model_3d, download_file],
|