Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,7 +13,7 @@ def reverse_string(arg1:str)-> str: #it's import to specify the return type
|
|
| 13 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
| 14 |
"""A tool that searches the web
|
| 15 |
Args:
|
| 16 |
-
arg1:
|
| 17 |
"""
|
| 18 |
arg1 = arg1[::-1]
|
| 19 |
return arg1
|
|
@@ -46,11 +46,12 @@ model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may
|
|
| 46 |
custom_role_conversions=None,
|
| 47 |
)
|
| 48 |
|
| 49 |
-
duck_duck_go_search = DuckDuckGoSearchTool()
|
| 50 |
|
| 51 |
# Import tool from Hub
|
| 52 |
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
| 53 |
|
|
|
|
|
|
|
| 54 |
with open("prompts.yaml", 'r') as stream:
|
| 55 |
prompt_templates = yaml.safe_load(stream)
|
| 56 |
|
|
|
|
| 13 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
| 14 |
"""A tool that searches the web
|
| 15 |
Args:
|
| 16 |
+
arg1: string to be reversed
|
| 17 |
"""
|
| 18 |
arg1 = arg1[::-1]
|
| 19 |
return arg1
|
|
|
|
| 46 |
custom_role_conversions=None,
|
| 47 |
)
|
| 48 |
|
|
|
|
| 49 |
|
| 50 |
# Import tool from Hub
|
| 51 |
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
| 52 |
|
| 53 |
+
duck_duck_go_search = DuckDuckGoSearchTool()
|
| 54 |
+
|
| 55 |
with open("prompts.yaml", 'r') as stream:
|
| 56 |
prompt_templates = yaml.safe_load(stream)
|
| 57 |
|