Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -40,7 +40,10 @@ for index, row in df.iterrows():
|
|
| 40 |
nutrition_map = ["Calorie"," Total Fat", 'Sugar', 'Sodium', 'Protein', 'Saturated Fat', 'Total Carbohydrate']
|
| 41 |
nutrition_labeled = []
|
| 42 |
for label, num in zip(nutrition_map, nutrition):
|
| 43 |
-
|
|
|
|
|
|
|
|
|
|
| 44 |
|
| 45 |
#format steps
|
| 46 |
for i in range(len(steps)):
|
|
|
|
| 40 |
nutrition_map = ["Calorie"," Total Fat", 'Sugar', 'Sodium', 'Protein', 'Saturated Fat', 'Total Carbohydrate']
|
| 41 |
nutrition_labeled = []
|
| 42 |
for label, num in zip(nutrition_map, nutrition):
|
| 43 |
+
if label == "Calorie":
|
| 44 |
+
nutrition_labeled.append(f"{label} : {num} per serving")
|
| 45 |
+
else:
|
| 46 |
+
nutrition_labeled.append(f"{label} : {num} % daily value")
|
| 47 |
|
| 48 |
#format steps
|
| 49 |
for i in range(len(steps)):
|