Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,7 +19,7 @@ def offset_calculation(prediction_length, rolling_windows, length):
|
|
| 19 |
row_offset = -1 * prediction_length * rolling_windows
|
| 20 |
if abs(row_offset) > 0.95 * length:
|
| 21 |
raise gr.Error("Reduce prediction_length * rolling_windows")
|
| 22 |
-
return row_offset/2
|
| 23 |
|
| 24 |
|
| 25 |
def preprocess(
|
|
|
|
| 19 |
row_offset = -1 * prediction_length * rolling_windows
|
| 20 |
if abs(row_offset) > 0.95 * length:
|
| 21 |
raise gr.Error("Reduce prediction_length * rolling_windows")
|
| 22 |
+
return row_offset//2
|
| 23 |
|
| 24 |
|
| 25 |
def preprocess(
|