stinoco commited on
Commit
aabad01
·
1 Parent(s): c97ae1f

fixed read model and data

Browse files
Files changed (1) hide show
  1. get_forecast.py +2 -2
get_forecast.py CHANGED
@@ -13,9 +13,9 @@ def get_forecast(serie: str, periods, percent_change: int):
13
  raise ValueError('Input not valid')
14
 
15
  # load model files
16
- with open(model_file, 'r') as fin:
17
  model = model_from_json(fin.read())
18
- history = pd.read_csv(data_file, encoding = 'utf-8-sig', sep = ';')
19
  history['ds'] = pd.to_datetime(history['ds'])
20
 
21
  # make future dataframe
 
13
  raise ValueError('Input not valid')
14
 
15
  # load model files
16
+ with open('models/' + model_file, 'r') as fin:
17
  model = model_from_json(fin.read())
18
+ history = pd.read_csv('data/' + data_file, encoding = 'utf-8-sig', sep = ';')
19
  history['ds'] = pd.to_datetime(history['ds'])
20
 
21
  # make future dataframe