Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,8 @@ def my_custom_tool(arg1:str, img: bool)-> str: #it's import to specify the retur
|
|
22 |
img = image_generation_tool(arg1)
|
23 |
return img
|
24 |
else:
|
25 |
-
|
|
|
26 |
return str(answer)
|
27 |
except Exception as e:
|
28 |
return f"error occurred in my_custom_tool...{str(e)}"
|
|
|
22 |
img = image_generation_tool(arg1)
|
23 |
return img
|
24 |
else:
|
25 |
+
search_obj = DuckDuckGoSearchTool()
|
26 |
+
answer = search_obj(arg1)
|
27 |
return str(answer)
|
28 |
except Exception as e:
|
29 |
return f"error occurred in my_custom_tool...{str(e)}"
|