Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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)
|