Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -260,31 +260,34 @@ def build_demo():
|
|
260 |
</p>
|
261 |
"""
|
262 |
)
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
"assets/images/np5_b81f29e567ea4db48014f89c9079e403.png",
|
271 |
-
5,
|
272 |
-
],
|
273 |
-
[
|
274 |
-
"assets/images/np7_1c004909dedb4ebe8db69b4d7b077434.png",
|
275 |
-
7,
|
276 |
-
],
|
277 |
-
[
|
278 |
-
"assets/images/np13_b07b4d858z.png",
|
279 |
-
13,
|
280 |
-
],
|
281 |
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
288 |
|
289 |
run_button.click(fn=run_triposg,
|
290 |
inputs=[input_image, num_parts, seed, num_tokens, num_steps,
|
|
|
260 |
</p>
|
261 |
"""
|
262 |
)
|
263 |
+
with gr.Row(scale=2):
|
264 |
+
output_model = gr.Model3D(label="Merged 3D Object")
|
265 |
+
output_dir = gr.Textbox(label="Export Directory", visible=False)
|
266 |
+
with gr.Row(scale=1):
|
267 |
+
download_zip = gr.File(label="Download All Parts (zip)")
|
268 |
+
with gr.Row(scale=3):
|
269 |
+
examples = gr.Examples(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
270 |
|
271 |
+
examples=[
|
272 |
+
[
|
273 |
+
"assets/images/np5_b81f29e567ea4db48014f89c9079e403.png",
|
274 |
+
5,
|
275 |
+
],
|
276 |
+
[
|
277 |
+
"assets/images/np7_1c004909dedb4ebe8db69b4d7b077434.png",
|
278 |
+
7,
|
279 |
+
],
|
280 |
+
[
|
281 |
+
"assets/images/np13_b07b4d858z.png",
|
282 |
+
13,
|
283 |
+
],
|
284 |
+
|
285 |
+
],
|
286 |
+
inputs=[input_image, num_parts],
|
287 |
+
outputs=[output_model, output_dir, download_zip],
|
288 |
+
fn=run_triposg,
|
289 |
+
cache_examples=True,
|
290 |
+
)
|
291 |
|
292 |
run_button.click(fn=run_triposg,
|
293 |
inputs=[input_image, num_parts, seed, num_tokens, num_steps,
|