Spaces:
Sleeping
Sleeping
Update Bert_predict.py
Browse files- Bert_predict.py +2 -0
Bert_predict.py
CHANGED
|
@@ -28,6 +28,8 @@ class BertPredictor:
|
|
| 28 |
# 檔案名稱用今天的日期,但內容是昨天的
|
| 29 |
today_date_str = date.today().strftime('%Y-%m-%d')
|
| 30 |
self.news_csv_path = os.path.join(self.current_dir, f'news_{today_date_str}.csv')
|
|
|
|
|
|
|
| 31 |
|
| 32 |
# 用於API查詢的日期仍然是昨天
|
| 33 |
self.target_date = date.today() - timedelta(days=1)
|
|
|
|
| 28 |
# 檔案名稱用今天的日期,但內容是昨天的
|
| 29 |
today_date_str = date.today().strftime('%Y-%m-%d')
|
| 30 |
self.news_csv_path = os.path.join(self.current_dir, f'news_{today_date_str}.csv')
|
| 31 |
+
### 抓取固定檔案而非今天,成果展示要註解
|
| 32 |
+
self.news_csv_path = os.path.join(self.current_dir, "news_2025-09-12.csv")
|
| 33 |
|
| 34 |
# 用於API查詢的日期仍然是昨天
|
| 35 |
self.target_date = date.today() - timedelta(days=1)
|