Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -2847,7 +2847,7 @@ def update_sentiment_analysis(selected_stock):
|
|
| 2847 |
return dcc.Graph(figure=gauge_fig), news_content
|
| 2848 |
|
| 2849 |
# 在 Colab 中執行的設定
|
| 2850 |
-
|
| 2851 |
# 在執行前先測試檔案讀取
|
| 2852 |
print("測試檔案讀取...")
|
| 2853 |
business_data = get_business_climate_data()
|
|
@@ -2859,4 +2859,4 @@ def update_sentiment_analysis(selected_stock):
|
|
| 2859 |
print(f"PMI資料預覽:\n{pmi_data.head()}")
|
| 2860 |
|
| 2861 |
# 在 Hugging Face Spaces 中執行
|
| 2862 |
-
|
|
|
|
| 2847 |
return dcc.Graph(figure=gauge_fig), news_content
|
| 2848 |
|
| 2849 |
# 在 Colab 中執行的設定
|
| 2850 |
+
if __name__ == '__main__':
|
| 2851 |
# 在執行前先測試檔案讀取
|
| 2852 |
print("測試檔案讀取...")
|
| 2853 |
business_data = get_business_climate_data()
|
|
|
|
| 2859 |
print(f"PMI資料預覽:\n{pmi_data.head()}")
|
| 2860 |
|
| 2861 |
# 在 Hugging Face Spaces 中執行
|
| 2862 |
+
app.run(host="0.0.0.0", port=7860, debug=TRUE)
|