Xu Ma commited on
Commit
ee8887e
·
1 Parent(s): 0461f1c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -11,7 +11,7 @@ feature_extractor = DPTFeatureExtractor.from_pretrained("Intel/dpt-large")
11
  model = DPTForDepthEstimation.from_pretrained("Intel/dpt-large")
12
 
13
 
14
- def process_image(image_path):
15
  image_path = Path(image_path)
16
  image_raw = Image.open(image_path)
17
  image = image_raw.resize(
@@ -117,7 +117,7 @@ iface = gr.Interface(fn=process_image,
117
  ],
118
  type="value",
119
  default='add 5 paths one by one',
120
- label='experiment_id'
121
  )
122
  ],
123
  outputs=[gr.outputs.Image(label="predicted depth", type="pil"),
 
11
  model = DPTForDepthEstimation.from_pretrained("Intel/dpt-large")
12
 
13
 
14
+ def process_image(image_path, experiment_id):
15
  image_path = Path(image_path)
16
  image_raw = Image.open(image_path)
17
  image = image_raw.resize(
 
117
  ],
118
  type="value",
119
  default='add 5 paths one by one',
120
+ label='experiment id'
121
  )
122
  ],
123
  outputs=[gr.outputs.Image(label="predicted depth", type="pil"),