Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -32,7 +32,7 @@ def get_calories(meal:str) -> Union[str, None]:
|
|
| 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 =
|
| 36 |
params = {
|
| 37 |
'search_terms': meal,
|
| 38 |
'search_simple': 1,
|
|
|
|
| 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"
|
| 36 |
params = {
|
| 37 |
'search_terms': meal,
|
| 38 |
'search_simple': 1,
|