Update app.py
Browse files
app.py
CHANGED
|
@@ -7,7 +7,7 @@ from geo_macro import UnifiedMarketDataDownloader
|
|
| 7 |
from feature_engineering import IntegratedTheoryFeatures
|
| 8 |
|
| 9 |
# Get FRED API key from environment (set in HF Spaces secrets)
|
| 10 |
-
|
| 11 |
|
| 12 |
def run_pipeline(days_back=1825): # ~5 years
|
| 13 |
try:
|
|
@@ -16,7 +16,7 @@ def run_pipeline(days_back=1825): # ~5 years
|
|
| 16 |
start_str = start_date.strftime('%Y-%m-%d')
|
| 17 |
end_str = pd.Timestamp.today().strftime('%Y-%m-%d')
|
| 18 |
|
| 19 |
-
downloader = UnifiedMarketDataDownloader(
|
| 20 |
df = downloader.download_all_data(start_date=start_str, end_date=end_str)
|
| 21 |
|
| 22 |
# Run feature engineering
|
|
|
|
| 7 |
from feature_engineering import IntegratedTheoryFeatures
|
| 8 |
|
| 9 |
# Get FRED API key from environment (set in HF Spaces secrets)
|
| 10 |
+
|
| 11 |
|
| 12 |
def run_pipeline(days_back=1825): # ~5 years
|
| 13 |
try:
|
|
|
|
| 16 |
start_str = start_date.strftime('%Y-%m-%d')
|
| 17 |
end_str = pd.Timestamp.today().strftime('%Y-%m-%d')
|
| 18 |
|
| 19 |
+
downloader = UnifiedMarketDataDownloader()
|
| 20 |
df = downloader.download_all_data(start_date=start_str, end_date=end_str)
|
| 21 |
|
| 22 |
# Run feature engineering
|