Spaces:
Sleeping
Sleeping
Update15
Browse files
app.py
CHANGED
|
@@ -44,11 +44,19 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
| 44 |
# )
|
| 45 |
final_answer = FinalAnswerTool()
|
| 46 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
my_tool = Tool(
|
| 48 |
-
"
|
| 49 |
-
"A tool that get information about cities", # description
|
| 50 |
my_custom_tool, # function to call
|
| 51 |
-
[("
|
| 52 |
"str", # output
|
| 53 |
)
|
| 54 |
# If the agent does not answer, the model is overloaded, please use another model or the following Hugging Face Endpoint that also contains qwen2.5 coder:
|
|
|
|
| 44 |
# )
|
| 45 |
final_answer = FinalAnswerTool()
|
| 46 |
|
| 47 |
+
# my_tool = Tool(
|
| 48 |
+
# "my_custom_tool", # name
|
| 49 |
+
# "A tool that get information about cities", # description
|
| 50 |
+
# my_custom_tool, # function to call
|
| 51 |
+
# [("arg1", "str")], # inputs (names and types)
|
| 52 |
+
# "str", # output
|
| 53 |
+
# )
|
| 54 |
+
|
| 55 |
my_tool = Tool(
|
| 56 |
+
"my_tool", # name
|
| 57 |
+
"A tool that get information about cities.", # description
|
| 58 |
my_custom_tool, # function to call
|
| 59 |
+
[("a", "str")], # inputs (names and types)
|
| 60 |
"str", # output
|
| 61 |
)
|
| 62 |
# If the agent does not answer, the model is overloaded, please use another model or the following Hugging Face Endpoint that also contains qwen2.5 coder:
|