Spaces:
Sleeping
Sleeping
Sagar S
commited on
try updating country name
Browse files
app.py
CHANGED
|
@@ -9,7 +9,7 @@ from typing import List, Dict
|
|
| 9 |
from Gradio_UI import GradioUI
|
| 10 |
|
| 11 |
@tool
|
| 12 |
-
def
|
| 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,
|
| 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,
|