John6666 commited on
Commit
6a86353
·
verified ·
1 Parent(s): cf8708d

Upload 3 files

Browse files
Files changed (1) hide show
  1. 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
- with gr.Row():
37
- input_img = gr.Image(
38
- type="pil", label="Input Image", sources="upload", image_mode="RGBA"
39
- )
40
 
41
- with gr.Row():
42
- model_output = gr.Model3D(
43
- label="Generated .GLB model",
44
- clear_color=[0.0, 0.0, 0.0, 0.0],
45
- visible=False
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(