Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -45,12 +45,9 @@ image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_co
|
|
| 45 |
|
| 46 |
@tool
|
| 47 |
def text_to_image(text: str) -> str:
|
| 48 |
-
"""
|
| 49 |
-
A tool that takes a text string and creates an image with textual information.
|
| 50 |
Args:
|
| 51 |
text: A string representing the textual information about the image to be created.
|
| 52 |
-
Returns:
|
| 53 |
-
str: Image URL or path
|
| 54 |
"""
|
| 55 |
try:
|
| 56 |
return image_generation_tool(text)
|
|
|
|
| 45 |
|
| 46 |
@tool
|
| 47 |
def text_to_image(text: str) -> str:
|
| 48 |
+
"""A tool that takes a text string builds image and returns the url in string format.
|
|
|
|
| 49 |
Args:
|
| 50 |
text: A string representing the textual information about the image to be created.
|
|
|
|
|
|
|
| 51 |
"""
|
| 52 |
try:
|
| 53 |
return image_generation_tool(text)
|