RobotJelly commited on
Commit
74018a3
·
verified ·
1 Parent(s): ac022fa

Update app.py

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