Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -295,7 +295,7 @@ def file_selector_ui():
|
|
| 295 |
filename = file_selector(folder_path=folder_path)
|
| 296 |
printname = list(filename)
|
| 297 |
printname[filename.rfind('\\')] = '/'
|
| 298 |
-
st.write('You selected`%s`' % ''.join(printname))
|
| 299 |
return filename
|
| 300 |
|
| 301 |
def file_upload(folder_path='.'):
|
|
@@ -330,7 +330,6 @@ def main():
|
|
| 330 |
image_vis, gt_mask, pr_mask = model_infer(to_infer)
|
| 331 |
visualize(
|
| 332 |
image=image_vis,
|
| 333 |
-
ground_truth_mask=gt_mask,
|
| 334 |
predicted_mask=pr_mask
|
| 335 |
)
|
| 336 |
|
|
|
|
| 295 |
filename = file_selector(folder_path=folder_path)
|
| 296 |
printname = list(filename)
|
| 297 |
printname[filename.rfind('\\')] = '/'
|
| 298 |
+
#st.write('You selected`%s`' % ''.join(printname))
|
| 299 |
return filename
|
| 300 |
|
| 301 |
def file_upload(folder_path='.'):
|
|
|
|
| 330 |
image_vis, gt_mask, pr_mask = model_infer(to_infer)
|
| 331 |
visualize(
|
| 332 |
image=image_vis,
|
|
|
|
| 333 |
predicted_mask=pr_mask
|
| 334 |
)
|
| 335 |
|