Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -88,7 +88,10 @@ original_image_generation_tool = load_tool("agents-course/text-to-image", trust_
|
|
88 |
|
89 |
@tool
|
90 |
def image_generation_tool(prompt: str) -> str:
|
91 |
-
"""Generates an image from a prompt and embeds it as base64 in markdown.
|
|
|
|
|
|
|
92 |
path = original_image_generation_tool(prompt)
|
93 |
return image_path_to_markdown(path)
|
94 |
|
|
|
88 |
|
89 |
@tool
|
90 |
def image_generation_tool(prompt: str) -> str:
|
91 |
+
"""Generates an image from a prompt and embeds it as base64 in markdown.
|
92 |
+
Args:
|
93 |
+
prompt: The text prompt to generate an image from.
|
94 |
+
"""
|
95 |
path = original_image_generation_tool(prompt)
|
96 |
return image_path_to_markdown(path)
|
97 |
|