tonyliu404 commited on
Commit
bc98abf
·
verified ·
1 Parent(s): 37ff662

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
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
- nutrition_labeled.append(f"{label} : {num} % daily value")
 
 
 
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)):