Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -42,7 +42,6 @@ def get_calories(meal:str) -> Union[str, None]:
|
|
| 42 |
response = requests.get(search_url, params=params)
|
| 43 |
|
| 44 |
try:
|
| 45 |
-
response.status_code == 200:
|
| 46 |
data = response.json()
|
| 47 |
if data['count'] > 0:
|
| 48 |
for product in data['products']:
|
|
|
|
| 42 |
response = requests.get(search_url, params=params)
|
| 43 |
|
| 44 |
try:
|
|
|
|
| 45 |
data = response.json()
|
| 46 |
if data['count'] > 0:
|
| 47 |
for product in data['products']:
|