Spaces:
Sleeping
Sleeping
ichieh commited on
Commit ·
589fc6b
1
Parent(s): 36e307d
Fix column names in app.py
Browse files
app.py
CHANGED
|
@@ -15,8 +15,9 @@ try:
|
|
| 15 |
|
| 16 |
SHELTERS_DF = pd.read_csv('shelters.csv')
|
| 17 |
logger.info(f"Successfully loaded shelters.csv with {len(SHELTERS_DF)} rows")
|
|
|
|
| 18 |
|
| 19 |
-
SHELTER_CHOICES = [(row['名稱'], row['代碼']) for _, row in SHELTERS_DF.iterrows()]
|
| 20 |
logger.info(f"Created {len(SHELTER_CHOICES)} shelter choices")
|
| 21 |
|
| 22 |
except Exception as e:
|
|
|
|
| 15 |
|
| 16 |
SHELTERS_DF = pd.read_csv('shelters.csv')
|
| 17 |
logger.info(f"Successfully loaded shelters.csv with {len(SHELTERS_DF)} rows")
|
| 18 |
+
logger.info(f"CSV columns: {SHELTERS_DF.columns.tolist()}")
|
| 19 |
|
| 20 |
+
SHELTER_CHOICES = [(row['收容所名稱'], row['代碼']) for _, row in SHELTERS_DF.iterrows()]
|
| 21 |
logger.info(f"Created {len(SHELTER_CHOICES)} shelter choices")
|
| 22 |
|
| 23 |
except Exception as e:
|