Spaces:
Sleeping
Sleeping
Update config.py
Browse files
config.py
CHANGED
|
@@ -31,12 +31,11 @@ os.makedirs(STATIC_DIR, exist_ok=True)
|
|
| 31 |
CWA_API_KEY = os.getenv("CWA_API_KEY")
|
| 32 |
CWA_ALARM_API = "https://app-2.cwa.gov.tw/api/v1/earthquake/alarm/list"
|
| 33 |
CWA_SIGNIFICANT_API = "https://opendata.cwa.gov.tw/api/v1/rest/datastore/E-A0015-001"
|
| 34 |
-
CWA_LOCAL_EQ_API = "https://opendata.cwa.gov.tw/api/v1/rest/datastore/E-A0016-001" # This line was missing
|
| 35 |
USGS_API_BASE_URL = "https://earthquake.usgs.gov/fdsnws/event/1/query"
|
| 36 |
|
| 37 |
# --- AI 模型設定 ---
|
| 38 |
-
HUGGING_FACE_TOKEN = os.getenv("
|
| 39 |
-
LLM_MODEL = os.getenv("LLM_MODEL", "
|
| 40 |
LLM_MAX_NEW_TOKENS = int(os.getenv("LLM_MAX_NEW_TOKENS", "120"))
|
| 41 |
LLM_TOP_K = int(os.getenv("LLM_TOP_K", "50"))
|
| 42 |
LLM_TEMPERATURE = float(os.getenv("LLM_TEMPERATURE", "0.7"))
|
|
|
|
| 31 |
CWA_API_KEY = os.getenv("CWA_API_KEY")
|
| 32 |
CWA_ALARM_API = "https://app-2.cwa.gov.tw/api/v1/earthquake/alarm/list"
|
| 33 |
CWA_SIGNIFICANT_API = "https://opendata.cwa.gov.tw/api/v1/rest/datastore/E-A0015-001"
|
|
|
|
| 34 |
USGS_API_BASE_URL = "https://earthquake.usgs.gov/fdsnws/event/1/query"
|
| 35 |
|
| 36 |
# --- AI 模型設定 ---
|
| 37 |
+
HUGGING_FACE_TOKEN = os.getenv("HUGging_FACE_TOKEN")
|
| 38 |
+
LLM_MODEL = os.getenv("LLM_MODEL", "google/flan-t5-small") # [修改] 更新模型名稱
|
| 39 |
LLM_MAX_NEW_TOKENS = int(os.getenv("LLM_MAX_NEW_TOKENS", "120"))
|
| 40 |
LLM_TOP_K = int(os.getenv("LLM_TOP_K", "50"))
|
| 41 |
LLM_TEMPERATURE = float(os.getenv("LLM_TEMPERATURE", "0.7"))
|