JUGGHM commited on
Commit
2ebe11d
·
1 Parent(s): 4622be5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -4
app.py CHANGED
@@ -70,9 +70,8 @@ def depth_normal(img):
70
  img = Image.fromarray(formatted)
71
  return img
72
 
73
-
74
- inputs = gr.inputs.Image(type='pil', label="Original Image")
75
- depth = gr.outputs.Image(type="pil",label="Output Depth")
76
  #normal = gr.outputs.Image(type="pil",label="Output Normal")
77
 
78
  title = "Metric3DS"
@@ -84,4 +83,8 @@ examples = [
84
  ["lions.jpg"]
85
  ]
86
 
87
- gr.Interface(depth_normal, inputs, depth, title=title, description=description, article=article, examples=examples, analytics_enabled=False).launch(enable_queue=True,cache_examples=True)
 
 
 
 
 
70
  img = Image.fromarray(formatted)
71
  return img
72
 
73
+ #inputs = gr.inputs.Image(type='pil', label="Original Image")
74
+ #depth = gr.outputs.Image(type="pil",label="Output Depth")
 
75
  #normal = gr.outputs.Image(type="pil",label="Output Normal")
76
 
77
  title = "Metric3DS"
 
83
  ["lions.jpg"]
84
  ]
85
 
86
+ gr.Interface(
87
+ depth_normal,
88
+ inputs=[gr.Image(type='pil', label="Original Image")],
89
+ outputs=[gr.Image(type="pil",label="Output Depth")],
90
+ title=title, description=description, article=article, examples=examples, analytics_enabled=False).launch(enable_queue=True,cache_examples=True)