RobotJelly commited on
Commit
01ba1c3
·
verified ·
1 Parent(s): 8b3cdfe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
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
- img = image_generation_tool(arg1)
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)