Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
|
@@ -479,7 +479,7 @@ def run(fibers: Image.Image, rings: Image.Image, num_steps: int):
|
|
| 479 |
pil_imgs.append(im)
|
| 480 |
|
| 481 |
# miniatures affichées dans l'UI
|
| 482 |
-
thumbs = [im.copy()
|
| 483 |
|
| 484 |
# construire le .obj + textures
|
| 485 |
obj_path, tmpdir = build_textured_cube(pil_imgs)
|
|
@@ -509,10 +509,10 @@ with gr.Blocks(title="Cube 3D — coller 4 images sur les faces") as demo:
|
|
| 509 |
with gr.Column(scale=2):
|
| 510 |
model3d_out = gr.Model3D(label="Cube 3D (obj + mtl + textures)")
|
| 511 |
with gr.Row():
|
| 512 |
-
out1 = gr.Image(label="
|
| 513 |
-
out2 = gr.Image(label="
|
| 514 |
-
out3 = gr.Image(label="
|
| 515 |
-
out4 = gr.Image(label="
|
| 516 |
|
| 517 |
run_btn.click(fn=run, inputs=[inp1, inp2, inp3], outputs=[out1, out2, out3, out4, model3d_out])
|
| 518 |
|
|
|
|
| 479 |
pil_imgs.append(im)
|
| 480 |
|
| 481 |
# miniatures affichées dans l'UI
|
| 482 |
+
thumbs = [im.copy() for im in pil_imgs]
|
| 483 |
|
| 484 |
# construire le .obj + textures
|
| 485 |
obj_path, tmpdir = build_textured_cube(pil_imgs)
|
|
|
|
| 509 |
with gr.Column(scale=2):
|
| 510 |
model3d_out = gr.Model3D(label="Cube 3D (obj + mtl + textures)")
|
| 511 |
with gr.Row():
|
| 512 |
+
out1 = gr.Image(label="Front")
|
| 513 |
+
out2 = gr.Image(label="Right")
|
| 514 |
+
out3 = gr.Image(label="Back")
|
| 515 |
+
out4 = gr.Image(label="Left")
|
| 516 |
|
| 517 |
run_btn.click(fn=run, inputs=[inp1, inp2, inp3], outputs=[out1, out2, out3, out4, model3d_out])
|
| 518 |
|