RaulHuarote commited on
Commit
80acb4b
·
verified ·
1 Parent(s): 1ac9e6f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -43,9 +43,10 @@ async def predict(data: InputData):
43
  input_data = np.array(data.data).reshape(
44
  1, -1
45
  ) # Asumiendo que la entrada debe ser de forma (1, num_features)
46
- prediction = model.predict(input_data).round()
47
  #return {"prediction": prediction.tolist()}
 
48
  print(prediction)
49
- return {"prediction": prediction[0][0]}
50
  except Exception as e:
51
  raise HTTPException(status_code=500, detail=str(e))
 
43
  input_data = np.array(data.data).reshape(
44
  1, -1
45
  ) # Asumiendo que la entrada debe ser de forma (1, num_features)
46
+ #prediction = model.predict(input_data).round()
47
  #return {"prediction": prediction.tolist()}
48
+ prediction = 9
49
  print(prediction)
50
+ return {"prediction": prediction}
51
  except Exception as e:
52
  raise HTTPException(status_code=500, detail=str(e))