shivanis14 commited on
Commit
5e09799
1 Parent(s): 749cf15

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -447,7 +447,7 @@ def analyze_product(product_info_raw, system_prompt):
447
  serving_size = product_info_from_db["servingSize"]["quantity"]
448
 
449
  if nutritional_information:
450
- product_type, calories, sugar, salt, serving_size = find_product_type(product_info_from_db)
451
  nutrient_analysis = analyze_nutrients(product_type, calories, sugar, salt, serving_size)
452
  print(f"DEBUG ! nutrient analysis is {nutrient_analysis}")
453
 
 
447
  serving_size = product_info_from_db["servingSize"]["quantity"]
448
 
449
  if nutritional_information:
450
+ product_type, calories, sugar, salt, serving_size = find_product_nutrients(product_info_from_db)
451
  nutrient_analysis = analyze_nutrients(product_type, calories, sugar, salt, serving_size)
452
  print(f"DEBUG ! nutrient analysis is {nutrient_analysis}")
453