Spaces:
Runtime error
Runtime error
Update app.py
Browse files6 unmodified lines7891011126 unmodified linesfrom Gradio_UI import GradioUI# Below is an example of a tool that does nothing. Amaze us with your creativity !@tooldef my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return type6 unmodified lines789101112131415161718192021226 unmodified linesfrom Gradio_UI import GradioUIfrom smolagents import toolfrom smolagents.tools import DuckDuckGoSearchTool_ddg = DuckDuckGoSearchTool()@tooldef web_search(query: str) -> str:"""Search the web using DuckDuckGo and return the results."""return _ddg(query)# Below is an example of a tool that does nothing. Amaze us with your creativity !@tooldef my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return type
app.py+10