DanielKiani commited on
Commit
e7bd3d1
·
verified ·
1 Parent(s): f9b1753

Update scripts/app.py

Browse files
Files changed (1) hide show
  1. scripts/app.py +1 -1
scripts/app.py CHANGED
@@ -393,7 +393,7 @@ def get_latest_data_window(window_size=30):
393
  lookback_days = window_size + 150
394
  end_date = datetime.now().strftime('%Y-%m-%d')
395
  start_date = (datetime.now() - timedelta(days=lookback_days)).strftime('%Y-%m-%d')
396
- temp_filename = os.path.join(project_root, "data", "temp_gradio_prediction_data.csv")
397
  fetch_market_data(start_date, end_date, temp_filename)
398
  if not os.path.exists(temp_filename): raise Exception("Failed to fetch market data file.")
399
  df = pd.read_csv(temp_filename, index_col=0, parse_dates=True)
 
393
  lookback_days = window_size + 150
394
  end_date = datetime.now().strftime('%Y-%m-%d')
395
  start_date = (datetime.now() - timedelta(days=lookback_days)).strftime('%Y-%m-%d')
396
+ temp_filename = os.path.join("data", "temp_gradio_prediction_data.csv")
397
  fetch_market_data(start_date, end_date, temp_filename)
398
  if not os.path.exists(temp_filename): raise Exception("Failed to fetch market data file.")
399
  df = pd.read_csv(temp_filename, index_col=0, parse_dates=True)