dschandra commited on
Commit
8e79534
·
verified ·
1 Parent(s): 77566dc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -16,11 +16,11 @@ def generate_3d_model(image):
16
 
17
  return result_image
18
 
19
- # Gradio interface definition
20
  iface = gr.Interface(
21
  fn=generate_3d_model,
22
- inputs=gr.inputs.Image(type="pil", label="Upload Jewelry Image"),
23
- outputs=gr.outputs.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"
 
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"