Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -54,13 +54,9 @@ custom_role_conversions=None,
|
|
| 54 |
@tool
|
| 55 |
def generate_image_from_text(prompt: str) -> None:
|
| 56 |
"""
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
prompt: The text description of the image to be generated.
|
| 61 |
-
|
| 62 |
-
Returns:
|
| 63 |
-
None: This function displays the generated image but does not return any value.
|
| 64 |
"""
|
| 65 |
try:
|
| 66 |
# Load the image generation tool
|
|
|
|
| 54 |
@tool
|
| 55 |
def generate_image_from_text(prompt: str) -> None:
|
| 56 |
"""
|
| 57 |
+
A tool that generates an image based on the given text prompt and displays it.
|
| 58 |
+
Args:
|
| 59 |
+
prompt: A string describing the image to be generated.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 60 |
"""
|
| 61 |
try:
|
| 62 |
# Load the image generation tool
|