Update app.py
Browse files
app.py
CHANGED
@@ -162,7 +162,8 @@ if st.button("Run Inference"):
|
|
162 |
optic_path = save_uploaded_file(optic_file, suffix=".tif")
|
163 |
mask_path = save_uploaded_file(mask_file, suffix=".tif")
|
164 |
|
165 |
-
wiup_zip_path = save_uploaded_file(wiup_file,
|
|
|
166 |
extract_folder = wiup_zip_path.replace(".zip", "")
|
167 |
with zipfile.ZipFile(wiup_zip_path, "r") as zip_ref:
|
168 |
zip_ref.extractall(extract_folder)
|
|
|
162 |
optic_path = save_uploaded_file(optic_file, suffix=".tif")
|
163 |
mask_path = save_uploaded_file(mask_file, suffix=".tif")
|
164 |
|
165 |
+
wiup_zip_path = save_uploaded_file(wiup_file, ".zip")
|
166 |
+
|
167 |
extract_folder = wiup_zip_path.replace(".zip", "")
|
168 |
with zipfile.ZipFile(wiup_zip_path, "r") as zip_ref:
|
169 |
zip_ref.extractall(extract_folder)
|