Spaces:
Sleeping
Sleeping
Update app.py
Browse files25 unmodified lines2627282930313233343525 unmodified linesRetrieves the calorie information for a given meal from the OpenFoodFacts API.Args:meal (str): The name or description of the meal to search for.Returns:Union[str, None]: The calorie information as a string in the format 'X kcal per 100g','No data found' if no information is available, or None if the request fails."""search_url = "https://world.openfoodfacts.org/cgi/search.pl"25 unmodified lines2627282930313233343525 unmodified linesRetrieves the calorie information for a given meal from the OpenFoodFacts API.Args:meal: The argument that describes the name or description of the meal to search for.Returns:Union: The calorie information as a string in the format 'X kcal per 100g','No data found' if no information is available, or None if the request fails."""search_url = "https://world.openfoodfacts.org/cgi/search.pl"
app.py+2-2