Spaces:
Sleeping
Sleeping
chen commited on
Update config.py
Browse files27 unmodified lines282930313233343527 unmodified linesos.makedirs(STATIC_DIR, exist_ok=True)# --- API 端點與金鑰 ---CWA_AUTH_KEY = os.getenv("CWA_AUTH_KEY")CWA_ALARM_API = "https://app-2.cwa.gov.tw/api/v1/earthquake/alarm/list"USGS_API_BASE_URL = "https://earthquake.usgs.gov/fdsnws/event/1/query"# --- AI 模型設定 ---27 unmodified lines28293031323334353627 unmodified linesos.makedirs(STATIC_DIR, exist_ok=True)# --- API 端點與金鑰 ---CWA_API_KEY = os.getenv("CWA_API_KEY") # [修改] 統一 CWA 金鑰名稱CWA_ALARM_API = "https://app-2.cwa.gov.tw/api/v1/earthquake/alarm/list"CWA_SIGNIFICANT_API = "https://opendata.cwa.gov.tw/api/v1/rest/datastore/E-A0015-001" # [新增] 顯著有感地震 APIUSGS_API_BASE_URL = "https://earthquake.usgs.gov/fdsnws/event/1/query"# --- AI 模型設定 ---
config.py+2-1