Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,8 +19,7 @@ def my_custom_tool(arg1:str, img: bool)-> str: #it's import to specify the retur
|
|
| 19 |
"""
|
| 20 |
try:
|
| 21 |
if img:
|
| 22 |
-
|
| 23 |
-
return Image(img)
|
| 24 |
else:
|
| 25 |
search_obj = DuckDuckGoSearchTool()
|
| 26 |
answer = search_obj(arg1)
|
|
|
|
| 19 |
"""
|
| 20 |
try:
|
| 21 |
if img:
|
| 22 |
+
return image_generation_tool(arg1)
|
|
|
|
| 23 |
else:
|
| 24 |
search_obj = DuckDuckGoSearchTool()
|
| 25 |
answer = search_obj(arg1)
|