Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,6 @@ from Gradio_UI import GradioUI
|
|
| 10 |
|
| 11 |
ninja_api_key = os.environ['NINJA_API_KEY']
|
| 12 |
|
| 13 |
-
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
| 14 |
@tool
|
| 15 |
def get_nutrition_facts(query: str)-> str:
|
| 16 |
"""A tool that fetches nutrition facts from a given text.
|
|
@@ -64,7 +63,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
| 64 |
|
| 65 |
agent = CodeAgent(
|
| 66 |
model=model,
|
| 67 |
-
tools=[final_answer, get_current_time_in_timezone, get_nutrition_facts
|
| 68 |
max_steps=6,
|
| 69 |
verbosity_level=1,
|
| 70 |
grammar=None,
|
|
|
|
| 10 |
|
| 11 |
ninja_api_key = os.environ['NINJA_API_KEY']
|
| 12 |
|
|
|
|
| 13 |
@tool
|
| 14 |
def get_nutrition_facts(query: str)-> str:
|
| 15 |
"""A tool that fetches nutrition facts from a given text.
|
|
|
|
| 63 |
|
| 64 |
agent = CodeAgent(
|
| 65 |
model=model,
|
| 66 |
+
tools=[final_answer, get_current_time_in_timezone, get_nutrition_facts], ## add your tools here (don't remove final answer)
|
| 67 |
max_steps=6,
|
| 68 |
verbosity_level=1,
|
| 69 |
grammar=None,
|