temesgen0 commited on
Commit
7553308
·
verified ·
1 Parent(s): 93a5bee

updated in nameing error

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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 search_ethiopian_food(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,12 +52,12 @@ with open("prompts.yaml", 'r') as stream:
52
  # Create the Ethiopian food agent
53
  agent = CodeAgent(
54
  model=model,
55
- tools=[search_ethiopian_food, 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
  )
 
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
  )