updated in nameing error
Browse files
app.py
CHANGED
|
@@ -8,7 +8,7 @@ from Gradio_UI import GradioUI
|
|
| 8 |
|
| 9 |
# Custom tool for web search to find authentic Ethiopian food images
|
| 10 |
@tool
|
| 11 |
-
def
|
| 12 |
"""Search for authentic Ethiopian food images to understand exact appearance
|
| 13 |
Args:
|
| 14 |
food_name: Name of the Ethiopian food (e.g., "injera", "doro wat", "tibs")
|
|
@@ -52,12 +52,12 @@ with open("prompts.yaml", 'r') as stream:
|
|
| 52 |
# Create the Ethiopian food agent
|
| 53 |
agent = CodeAgent(
|
| 54 |
model=model,
|
| 55 |
-
tools=[
|
| 56 |
max_steps=6,
|
| 57 |
verbosity_level=1,
|
| 58 |
grammar=None,
|
| 59 |
planning_interval=None,
|
| 60 |
-
name="
|
| 61 |
description="Generates authentic Ethiopian food images by researching exact appearance first",
|
| 62 |
prompt_templates=prompt_templates
|
| 63 |
)
|
|
|
|
| 8 |
|
| 9 |
# Custom tool for web search to find authentic Ethiopian food images
|
| 10 |
@tool
|
| 11 |
+
def search_ethiopian_food_authentic(food_name: str) -> str:
|
| 12 |
"""Search for authentic Ethiopian food images to understand exact appearance
|
| 13 |
Args:
|
| 14 |
food_name: Name of the Ethiopian food (e.g., "injera", "doro wat", "tibs")
|
|
|
|
| 52 |
# Create the Ethiopian food agent
|
| 53 |
agent = CodeAgent(
|
| 54 |
model=model,
|
| 55 |
+
tools=[search_ethiopian_food_authentic, generate_ethiopian_food_image, final_answer],
|
| 56 |
max_steps=6,
|
| 57 |
verbosity_level=1,
|
| 58 |
grammar=None,
|
| 59 |
planning_interval=None,
|
| 60 |
+
name="ethiopian_food_image_generator",
|
| 61 |
description="Generates authentic Ethiopian food images by researching exact appearance first",
|
| 62 |
prompt_templates=prompt_templates
|
| 63 |
)
|