Spaces:
Sleeping
Sleeping
Add population
Browse files
app.py
CHANGED
@@ -33,7 +33,16 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
33 |
except Exception as e:
|
34 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
35 |
|
36 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
final_answer = FinalAnswerTool()
|
38 |
model = HfApiModel(
|
39 |
max_tokens=2096,
|
|
|
33 |
except Exception as e:
|
34 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
35 |
|
36 |
+
@tool
|
37 |
+
def get_population(country:str)-> str: #it's import to specify the return type
|
38 |
+
#Keep this format for the description / args / args description but feel free to modify the tool
|
39 |
+
"""A tool that returns the population for a country
|
40 |
+
Args:
|
41 |
+
country: a string representing the population of a country
|
42 |
+
arg2: the second argument
|
43 |
+
"""
|
44 |
+
return f"The population on {country} is 100"
|
45 |
+
|
46 |
final_answer = FinalAnswerTool()
|
47 |
model = HfApiModel(
|
48 |
max_tokens=2096,
|