Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -30,13 +30,9 @@ if 'user_location' not in st.session_state:
|
|
| 30 |
if 'manual_location_mode' not in st.session_state:
|
| 31 |
st.session_state.manual_location_mode = False
|
| 32 |
|
| 33 |
-
# Create data directories if they don't exist
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
os.makedirs('data/images', exist_ok=True)
|
| 37 |
-
except (OSError, PermissionError) as e:
|
| 38 |
-
# If directories already exist or we have permission issues, continue
|
| 39 |
-
pass
|
| 40 |
|
| 41 |
# Initialize data files
|
| 42 |
if not os.path.exists('data/users.json'):
|
|
|
|
| 30 |
if 'manual_location_mode' not in st.session_state:
|
| 31 |
st.session_state.manual_location_mode = False
|
| 32 |
|
| 33 |
+
# Create data directories if they don't exist
|
| 34 |
+
os.makedirs('data', exist_ok=True)
|
| 35 |
+
os.makedirs('data/images', exist_ok=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
|
| 37 |
# Initialize data files
|
| 38 |
if not os.path.exists('data/users.json'):
|