Spaces:
Running
Running
isitraghav
commited on
Commit
·
3a2e2ae
1
Parent(s):
b8a45c7
awd
Browse files
app.py
CHANGED
@@ -66,7 +66,7 @@ def get_fertilizer_recommendation(row, land_size_m2, fallow_years, thresholds, a
|
|
66 |
total_amount = base_amount_per_m2 * land_size_m2 * (1 + 0.1 * fallow_years)
|
67 |
fertilizer_amounts[nutrient_name] = round(total_amount, 2)
|
68 |
if deficiencies:
|
69 |
-
return {'recommendation': f'
|
70 |
else:
|
71 |
return {'recommendation': 'No deficiency, Manure Recommended', 'fertilizer_amounts': {}}
|
72 |
|
|
|
66 |
total_amount = base_amount_per_m2 * land_size_m2 * (1 + 0.1 * fallow_years)
|
67 |
fertilizer_amounts[nutrient_name] = round(total_amount, 2)
|
68 |
if deficiencies:
|
69 |
+
return {'recommendation': f'fertilizer needed for {", ".join(deficiencies)}', 'fertilizer_amounts': fertilizer_amounts}
|
70 |
else:
|
71 |
return {'recommendation': 'No deficiency, Manure Recommended', 'fertilizer_amounts': {}}
|
72 |
|