helgn commited on
Commit
b86ce7f
·
verified ·
1 Parent(s): 0f668f8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -26,10 +26,10 @@ def get_calories(meal:str) -> Union[str, None]:
26
  Retrieves the calorie information for a given meal from the OpenFoodFacts API.
27
 
28
  Args:
29
- meal (str): The name or description of the meal to search for.
30
 
31
  Returns:
32
- Union[str, None]: The calorie information as a string in the format 'X kcal per 100g',
33
  'No data found' if no information is available, or None if the request fails.
34
  """
35
  search_url = "https://world.openfoodfacts.org/cgi/search.pl"
 
26
  Retrieves the calorie information for a given meal from the OpenFoodFacts API.
27
 
28
  Args:
29
+ meal: The argument that describes the name or description of the meal to search for.
30
 
31
  Returns:
32
+ Union: The calorie information as a string in the format 'X kcal per 100g',
33
  'No data found' if no information is available, or None if the request fails.
34
  """
35
  search_url = "https://world.openfoodfacts.org/cgi/search.pl"