Update app.py
Browse files
app.py
CHANGED
|
@@ -16,11 +16,11 @@ def generate_3d_model(image):
|
|
| 16 |
|
| 17 |
return result_image
|
| 18 |
|
| 19 |
-
# Gradio interface
|
| 20 |
iface = gr.Interface(
|
| 21 |
fn=generate_3d_model,
|
| 22 |
-
inputs=gr.
|
| 23 |
-
outputs=gr.
|
| 24 |
title="3D Jewelry Model Generator",
|
| 25 |
description="Upload an image of jewelry to generate a 3D model. This is a placeholder for the actual 3D generation functionality.",
|
| 26 |
theme="compact"
|
|
|
|
| 16 |
|
| 17 |
return result_image
|
| 18 |
|
| 19 |
+
# Define the Gradio interface using the updated syntax
|
| 20 |
iface = gr.Interface(
|
| 21 |
fn=generate_3d_model,
|
| 22 |
+
inputs=gr.Image(type="pil", label="Upload Jewelry Image"),
|
| 23 |
+
outputs=gr.Image(type="pil", label="Generated 3D Model"),
|
| 24 |
title="3D Jewelry Model Generator",
|
| 25 |
description="Upload an image of jewelry to generate a 3D model. This is a placeholder for the actual 3D generation functionality.",
|
| 26 |
theme="compact"
|