Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,7 +15,7 @@ ninja_api_key = os.environ['NINJA_API_KEY']
|
|
| 15 |
def get_nutrition_facts(query: str)-> str:
|
| 16 |
"""A tool that fetches nutrition facts from a given text.
|
| 17 |
Args:
|
| 18 |
-
|
| 19 |
"""
|
| 20 |
api_key = ninja_api_key
|
| 21 |
url = f"https://api.api-ninjas.com/v1/nutrition?query={query}"
|
|
|
|
| 15 |
def get_nutrition_facts(query: str)-> str:
|
| 16 |
"""A tool that fetches nutrition facts from a given text.
|
| 17 |
Args:
|
| 18 |
+
query: A string representing valid food items (e.g. 1lb brisket and fries)
|
| 19 |
"""
|
| 20 |
api_key = ninja_api_key
|
| 21 |
url = f"https://api.api-ninjas.com/v1/nutrition?query={query}"
|