Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -88,18 +88,14 @@ with gr.Blocks() as demo:
|
|
| 88 |
gr.Markdown(description)
|
| 89 |
|
| 90 |
with gr.Row():
|
| 91 |
-
with gr.Column():
|
| 92 |
image_input = gr.Image(type="filepath", label="Upload Image")
|
| 93 |
generate_button = gr.Button("Generate 3D Model")
|
| 94 |
|
| 95 |
-
with gr.Column():
|
| 96 |
depth_output = gr.Image(label="Predicted Depth", type="pil")
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
model_output = gr.Model3D(label="3D Model Preview (GLTF)")
|
| 100 |
-
|
| 101 |
-
with gr.Row():
|
| 102 |
-
file_output = gr.File(label="Download 3D GLTF File")
|
| 103 |
|
| 104 |
generate_button.click(fn=process_image, inputs=[image_input], outputs=[depth_output, model_output, file_output])
|
| 105 |
|
|
@@ -112,3 +108,4 @@ if __name__ == "__main__":
|
|
| 112 |
|
| 113 |
|
| 114 |
|
|
|
|
|
|
| 88 |
gr.Markdown(description)
|
| 89 |
|
| 90 |
with gr.Row():
|
| 91 |
+
with gr.Column(scale=1):
|
| 92 |
image_input = gr.Image(type="filepath", label="Upload Image")
|
| 93 |
generate_button = gr.Button("Generate 3D Model")
|
| 94 |
|
| 95 |
+
with gr.Column(scale=2):
|
| 96 |
depth_output = gr.Image(label="Predicted Depth", type="pil")
|
| 97 |
+
model_output = gr.Model3D(label="3D Model Preview (GLTF)")
|
| 98 |
+
file_output = gr.File(label="Download 3D GLTF File")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 99 |
|
| 100 |
generate_button.click(fn=process_image, inputs=[image_input], outputs=[depth_output, model_output, file_output])
|
| 101 |
|
|
|
|
| 108 |
|
| 109 |
|
| 110 |
|
| 111 |
+
|