sdafd commited on
Commit
cf39c26
·
verified ·
1 Parent(s): 457ff50

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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
- #predictions_rescaled = scaler.inverse_transform(predictions.reshape(-1, 1)).flatten()
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