Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -51,7 +51,6 @@ async def predict(data: dict):
|
|
51 |
prediction = model.predict(df)
|
52 |
|
53 |
return {
|
54 |
-
"prediction": prediction.tolist(),
|
55 |
"nitrogen_need": float(prediction[0][0]),
|
56 |
"phosphorus_need": float(prediction[0][1]),
|
57 |
"potassium_need": float(prediction[0][2])
|
|
|
51 |
prediction = model.predict(df)
|
52 |
|
53 |
return {
|
|
|
54 |
"nitrogen_need": float(prediction[0][0]),
|
55 |
"phosphorus_need": float(prediction[0][1]),
|
56 |
"potassium_need": float(prediction[0][2])
|