Spaces:
Sleeping
Sleeping
Update app.py
Browse files32 unmodified lines33343536373839404142434445464732 unmodified linesexcept Exception as e:return f"Error fetching time for timezone '{timezone}': {str(e)}"@tooldef search_web(query: str) -> str:"""A tool that performs a web search using DuckDuckGo.Args:query: The search query string."""search_tool = DuckDuckGoSearchTool()results = search_tool.run(query)return resultsfinal_answer = FinalAnswerTool()32 unmodified lines33343536373839404142434445464732 unmodified linesexcept Exception as e:return f"Error fetching time for timezone '{timezone}': {str(e)}"# @tool# def search_web(query: str) -> str:# """A tool that performs a web search using DuckDuckGo.# Args:# query: The search query string.# """# search_tool = DuckDuckGoSearchTool()# results = search_tool.run(query)# return resultsfinal_answer = FinalAnswerTool()
app.py+9-9