kaxap commited on
Commit
94f4a4e
·
1 Parent(s): 8cc3c9b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -55,7 +55,7 @@ def train_and_forecast(
55
  except AttributeError:
56
  raise gr.Error("Upload a file with the Upload button")
57
  for i in range(prediction_length//2):
58
- df.append({'ds': f'predict_{i}', 'y': 0})
59
 
60
  row_offset = offset_calculation(prediction_length, rolling_windows, len(df))
61
  # prediction_length += int(len(df) * 0.1)
 
55
  except AttributeError:
56
  raise gr.Error("Upload a file with the Upload button")
57
  for i in range(prediction_length//2):
58
+ df.loc[len(df.index)] = [f'predict_{i}', 0]
59
 
60
  row_offset = offset_calculation(prediction_length, rolling_windows, len(df))
61
  # prediction_length += int(len(df) * 0.1)