Spaces:
Running
Running
Upload 3 files
Browse files- gradio_app.py +9 -11
gradio_app.py
CHANGED
@@ -33,18 +33,16 @@ def generate_and_process_3d(image: Image.Image) -> tuple[str | None, str | None]
|
|
33 |
with gr.Blocks() as demo:
|
34 |
gr.Markdown("This space is based on [Stable Point-Aware 3D](https://huggingface.co/spaces/stabilityai/stable-point-aware-3d) by Stability AI, [Text to 3D](https://huggingface.co/spaces/jbilcke-hf/text-to-3d) by jbilcke-hf.")
|
35 |
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
)
|
40 |
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
output_url = gr.Textbox(label="Output URL", value="", lines=1, interactive=False)
|
48 |
|
49 |
# Event handler
|
50 |
input_img.upload(
|
|
|
33 |
with gr.Blocks() as demo:
|
34 |
gr.Markdown("This space is based on [Stable Point-Aware 3D](https://huggingface.co/spaces/stabilityai/stable-point-aware-3d) by Stability AI, [Text to 3D](https://huggingface.co/spaces/jbilcke-hf/text-to-3d) by jbilcke-hf.")
|
35 |
|
36 |
+
input_img = gr.Image(
|
37 |
+
type="pil", label="Input Image", sources="upload", image_mode="RGBA", width=40,
|
38 |
+
)
|
|
|
39 |
|
40 |
+
model_output = gr.Model3D(
|
41 |
+
label="Generated .GLB model",
|
42 |
+
clear_color=[0.0, 0.0, 0.0, 0.0],
|
43 |
+
visible=False
|
44 |
+
)
|
45 |
+
output_url = gr.Textbox(label="Output URL", value="", lines=1, interactive=False)
|
|
|
46 |
|
47 |
# Event handler
|
48 |
input_img.upload(
|