Bobricha commited on
Commit
74bb38b
·
verified ·
1 Parent(s): 8a62192

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
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
- image_urls = image_generation_tool()
41
- image_url.run = (promt=f"Create a realistic image of a {animal_name}")
42
- image_url = image_urls(image_url.run)
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)}"