Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
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 |
|