Bobricha commited on
Commit
e8fb99e
·
verified ·
1 Parent(s): c5736fb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -33,8 +33,9 @@ def animal_image_generation_tool(animal_name: str) -> str:
33
  try:
34
  # use the DuckDuckGo Search to find information about an animal by its name.
35
  search_tool = DuckDuckGoSearchTool()
36
- search_results = search_tool.run(f"{animal_name} animal description")
37
-
 
38
  # generates an image based on the description of an animal.
39
  image_url = image_generation_tool.run(f"Create a realistic image of a {animal_name}")
40
 
 
33
  try:
34
  # use the DuckDuckGo Search to find information about an animal by its name.
35
  search_tool = DuckDuckGoSearchTool()
36
+ search_tool.run = f"{animal_name} animal description"
37
+ search_results = search_tool(search_tool.run)
38
+
39
  # generates an image based on the description of an animal.
40
  image_url = image_generation_tool.run(f"Create a realistic image of a {animal_name}")
41