Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -87,13 +87,12 @@ def save_to_hf_repo(local_path, repo_path):
|
|
87 |
st.exception(e)
|
88 |
|
89 |
|
90 |
-
|
91 |
|
92 |
# Define subdirectories
|
93 |
-
UPLOAD_DIR = "
|
94 |
-
MASK_DIR = "
|
95 |
-
|
96 |
-
PRED_PATCHES_DIR = "pred_patches"
|
97 |
CSV_LOG_PATH = "image_log.csv"
|
98 |
|
99 |
# Create directories
|
@@ -229,8 +228,7 @@ def upload_page():
|
|
229 |
filepath = os.path.join(UPLOAD_DIR, filename)
|
230 |
converted_filepath = os.path.join(UPLOAD_DIR, converted_filename)
|
231 |
|
232 |
-
|
233 |
-
f.write(bytes_data)
|
234 |
|
235 |
|
236 |
#st.success(f"Image saved to {filepath}")
|
|
|
87 |
st.exception(e)
|
88 |
|
89 |
|
90 |
+
|
91 |
|
92 |
# Define subdirectories
|
93 |
+
UPLOAD_DIR = "Images"
|
94 |
+
MASK_DIR = "Masks"
|
95 |
+
|
|
|
96 |
CSV_LOG_PATH = "image_log.csv"
|
97 |
|
98 |
# Create directories
|
|
|
228 |
filepath = os.path.join(UPLOAD_DIR, filename)
|
229 |
converted_filepath = os.path.join(UPLOAD_DIR, converted_filename)
|
230 |
|
231 |
+
|
|
|
232 |
|
233 |
|
234 |
#st.success(f"Image saved to {filepath}")
|