Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ async def predict(model: UploadFile = File(...), data: str = None):
|
|
29 |
print(data)
|
30 |
# Process the data
|
31 |
predictions = model.predict(ds_normalized.reshape(1, 12, 1)).tolist()
|
32 |
-
|
33 |
|
34 |
return {"predictions": predictions}
|
35 |
|
|
|
29 |
print(data)
|
30 |
# Process the data
|
31 |
predictions = model.predict(ds_normalized.reshape(1, 12, 1)).tolist()
|
32 |
+
predictions_rescaled = scaler.inverse_transform(np.array(predictions).reshape(-1, 1)).flatten()
|
33 |
|
34 |
return {"predictions": predictions}
|
35 |
|