Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -37,10 +37,9 @@ def animal_image_generation_tool(animal_name: str) -> str:
|
|
37 |
search_results = search_tool(search_tool.run)
|
38 |
|
39 |
# generates an image based on the description of an animal.
|
40 |
-
|
41 |
-
image_url
|
42 |
-
|
43 |
-
|
44 |
return f"Image {animal_name} successfully generated: {image_url}"
|
45 |
except Exception as e:
|
46 |
return f"Error during image generation: {str(e)}"
|
|
|
37 |
search_results = search_tool(search_tool.run)
|
38 |
|
39 |
# generates an image based on the description of an animal.
|
40 |
+
promt=f"Create a realistic image of a {animal_name}"
|
41 |
+
image_url = image_generation_tool(promt)
|
42 |
+
|
|
|
43 |
return f"Image {animal_name} successfully generated: {image_url}"
|
44 |
except Exception as e:
|
45 |
return f"Error during image generation: {str(e)}"
|