JayLacoma commited on
Commit
1cd84e4
·
verified ·
1 Parent(s): 386d57d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -3,7 +3,7 @@
3
  import os
4
  import gradio as gr
5
  import pandas as pd
6
- from geo_macro import UnifiedMarketDataDownloader
7
  from feature_engineering import IntegratedTheoryFeatures
8
 
9
  # Cache to avoid re-downloading data on every click
@@ -20,7 +20,7 @@ def get_data(start_date: str, end_date: str):
20
  return _cached_df.copy()
21
 
22
  print(f"📥 Downloading data from {start_date} to {end_date}...")
23
- downloader = UnifiedMarketDataDownloader()
24
  df = downloader.download_all_data(start_date=start_date, end_date=end_date)
25
 
26
  _cached_df = df.copy()
 
3
  import os
4
  import gradio as gr
5
  import pandas as pd
6
+ from geo_macro import UnifiedMarketDataDownloader, FRED_API_KEY
7
  from feature_engineering import IntegratedTheoryFeatures
8
 
9
  # Cache to avoid re-downloading data on every click
 
20
  return _cached_df.copy()
21
 
22
  print(f"📥 Downloading data from {start_date} to {end_date}...")
23
+ downloader = UnifiedMarketDataDownloader(FRED_API_KEY)
24
  df = downloader.download_all_data(start_date=start_date, end_date=end_date)
25
 
26
  _cached_df = df.copy()