AlanRex commited on
Commit
c2c2994
·
verified ·
1 Parent(s): 4e1618f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- if __name__ == '__main__':
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
- app.run(host="0.0.0.0", port=7860, debug=TRUE)
 
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)