mkalia commited on
Commit
88f3cf5
·
verified ·
1 Parent(s): e015760

Update depth_app.py

Browse files
Files changed (1) hide show
  1. depth_app.py +2 -2
depth_app.py CHANGED
@@ -65,10 +65,10 @@ def main():
65
  st.title("Monodepth2 Depth Estimation")
66
  st.write("Upload a PNG image to get depth estimation")
67
 
68
- if not os.path.exits("depth.pth"):
69
  subprocess.run(["wget", "https://github.com/meghakalia/depthEstimationColonoscopy/releases/download/0.0.1/depth.pth"])
70
 
71
- if not os.path.exits("encoder.pth"):
72
  subprocess.run(["wget", "https://github.com/meghakalia/depthEstimationColonoscopy/releases/download/0.0.1/encoder.pth"])
73
 
74
  uploaded_file = st.file_uploader("Choose a PNG file", type="png")
 
65
  st.title("Monodepth2 Depth Estimation")
66
  st.write("Upload a PNG image to get depth estimation")
67
 
68
+ if not os.path.exists("depth.pth"):
69
  subprocess.run(["wget", "https://github.com/meghakalia/depthEstimationColonoscopy/releases/download/0.0.1/depth.pth"])
70
 
71
+ if not os.path.exists("encoder.pth"):
72
  subprocess.run(["wget", "https://github.com/meghakalia/depthEstimationColonoscopy/releases/download/0.0.1/encoder.pth"])
73
 
74
  uploaded_file = st.file_uploader("Choose a PNG file", type="png")