Sagar S commited on
Commit
fb79024
·
verified ·
1 Parent(s): b88a85c

try updating country name

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -9,7 +9,7 @@ from typing import List, Dict
9
  from Gradio_UI import GradioUI
10
 
11
  @tool
12
- def get_country_data(country_name) -> List[Dict]:
13
  """
14
  Fetches and prints data for a country from the REST Countries API.
15
  Args:
@@ -87,7 +87,7 @@ with open("prompts.yaml", 'r') as stream:
87
 
88
  agent = CodeAgent(
89
  model=model,
90
- tools=[final_answer, image_generation_tool, get_current_time_in_timezone, get_country_data], ## add your tools here (don't remove final answer)
91
  max_steps=6,
92
  verbosity_level=1,
93
  grammar=None,
 
9
  from Gradio_UI import GradioUI
10
 
11
  @tool
12
+ def get_country_data_by_country_name(country_name) -> List[Dict]:
13
  """
14
  Fetches and prints data for a country from the REST Countries API.
15
  Args:
 
87
 
88
  agent = CodeAgent(
89
  model=model,
90
+ tools=[final_answer, image_generation_tool, get_current_time_in_timezone, get_country_data_by_country_name], ## add your tools here (don't remove final answer)
91
  max_steps=6,
92
  verbosity_level=1,
93
  grammar=None,