Spaces:
Running
Running
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +3 -3
src/streamlit_app.py
CHANGED
@@ -74,7 +74,7 @@ photo_data_file = st.sidebar.file_uploader("Upload Google Photos Location CSV (i
|
|
74 |
location_history_file = st.sidebar.file_uploader("Upload Google Maps Location History JSON", type=["json"])
|
75 |
|
76 |
locations = []
|
77 |
-
|
78 |
if photo_data_file is not None:
|
79 |
try:
|
80 |
photo_df = pd.read_csv(photo_data_file)
|
@@ -86,8 +86,8 @@ if photo_data_file is not None:
|
|
86 |
else:
|
87 |
st.sidebar.error("CSV file missing 'latitude' or 'longitude' columns.")
|
88 |
except Exception as e:
|
89 |
-
st.sidebar.error(f"Error loading Photos CSV: {e}")
|
90 |
-
|
91 |
if location_history_file is not None:
|
92 |
try:
|
93 |
import json
|
|
|
74 |
location_history_file = st.sidebar.file_uploader("Upload Google Maps Location History JSON", type=["json"])
|
75 |
|
76 |
locations = []
|
77 |
+
|
78 |
if photo_data_file is not None:
|
79 |
try:
|
80 |
photo_df = pd.read_csv(photo_data_file)
|
|
|
86 |
else:
|
87 |
st.sidebar.error("CSV file missing 'latitude' or 'longitude' columns.")
|
88 |
except Exception as e:
|
89 |
+
st.sidebar.error(f"Error loading Photos CSV: {e}") # This line should be correct
|
90 |
+
|
91 |
if location_history_file is not None:
|
92 |
try:
|
93 |
import json
|