Sandeepa commited on
Commit
6ece5d3
·
1 Parent(s): dbc78c6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -2,6 +2,7 @@ import gradio as gr
2
  from depth_detection import depth_detection
3
  from mesh_network import mesh_network
4
  from point_cloud import point_cloud
 
5
 
6
  def reconstruction3d(input_image):
7
 
@@ -10,5 +11,6 @@ def reconstruction3d(input_image):
10
  output_mesh = mesh_network(pcd_img)
11
  return output_mesh
12
 
13
- iface = gr.Interface(fn=reconstruction3d, inputs="image", outputs="image")
 
14
  iface.launch()
 
2
  from depth_detection import depth_detection
3
  from mesh_network import mesh_network
4
  from point_cloud import point_cloud
5
+ from PIL import Image
6
 
7
  def reconstruction3d(input_image):
8
 
 
11
  output_mesh = mesh_network(pcd_img)
12
  return output_mesh
13
 
14
+ input_image = gr.inputs.Image(label="Input Image")
15
+ iface = gr.Interface(fn=reconstruction3d, inputs=input_image, outputs="image")
16
  iface.launch()