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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -54,8 +54,9 @@ def train_and_forecast(
54
  df.sort_index(inplace=True)
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)
 
54
  df.sort_index(inplace=True)
55
  except AttributeError:
56
  raise gr.Error("Upload a file with the Upload button")
57
+ print(df)
58
  for i in range(prediction_length//2):
59
+ df.loc[len(df.index)] = [f'predict_{i}', 0.0]
60
 
61
  row_offset = offset_calculation(prediction_length, rolling_windows, len(df))
62
  # prediction_length += int(len(df) * 0.1)