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