Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,3 @@
|
|
| 1 |
-
# HUGING_FACE_V3.1.2.py (整合 Bert_predict 版本)
|
| 2 |
-
|
| 3 |
# 系統套件
|
| 4 |
import os
|
| 5 |
from datetime import datetime, timedelta
|
|
@@ -29,7 +27,7 @@ from model_predictor import advanced_lstm_predict
|
|
| 29 |
# 【【【模型切換開關】】】
|
| 30 |
# False: 使用簡易統計模型 (預設)
|
| 31 |
# True: 使用 model_predictor.py 中的進階 LSTM 模型 (未來啟用)
|
| 32 |
-
USE_ADVANCED_MODEL =
|
| 33 |
|
| 34 |
|
| 35 |
# ========================= CACHE 設定 START =========================
|
|
@@ -371,7 +369,7 @@ except Exception as e:
|
|
| 371 |
app.layout = html.Div([
|
| 372 |
html.H1("台股分析儀表板", style={'text-align': 'center', 'margin-bottom': '30px'}),
|
| 373 |
html.Div([
|
| 374 |
-
html.H2("🤖 AI深度學習預測 -
|
| 375 |
html.Div([
|
| 376 |
html.Div([
|
| 377 |
html.Label("預測期間:", style={'font-weight': 'bold', 'color': '#FFCC22'}),
|
|
|
|
|
|
|
|
|
|
| 1 |
# 系統套件
|
| 2 |
import os
|
| 3 |
from datetime import datetime, timedelta
|
|
|
|
| 27 |
# 【【【模型切換開關】】】
|
| 28 |
# False: 使用簡易統計模型 (預設)
|
| 29 |
# True: 使用 model_predictor.py 中的進階 LSTM 模型 (未來啟用)
|
| 30 |
+
USE_ADVANCED_MODEL = False
|
| 31 |
|
| 32 |
|
| 33 |
# ========================= CACHE 設定 START =========================
|
|
|
|
| 369 |
app.layout = html.Div([
|
| 370 |
html.H1("台股分析儀表板", style={'text-align': 'center', 'margin-bottom': '30px'}),
|
| 371 |
html.Div([
|
| 372 |
+
html.H2("🤖 AI深度學習預測 - 台指期指數", style={'text-align': 'center','color': '#FFCC22','margin-bottom': '25px'}),
|
| 373 |
html.Div([
|
| 374 |
html.Div([
|
| 375 |
html.Label("預測期間:", style={'font-weight': 'bold', 'color': '#FFCC22'}),
|