Spaces:
Runtime error
Runtime error
Update app.py
Browse filesAdding more details to the docstring
app.py
CHANGED
|
@@ -49,13 +49,19 @@ image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_co
|
|
| 49 |
@tool
|
| 50 |
def generate_line_drawing_image(description: str) -> str:
|
| 51 |
"""
|
| 52 |
-
Generates a line drawing image based on the given description.
|
| 53 |
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
(e.g., "A cat sitting on a windowsill", "A futuristic cityscape")
|
| 57 |
|
| 58 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
str: A URL to the generated image.
|
| 60 |
"""
|
| 61 |
try:
|
|
|
|
| 49 |
@tool
|
| 50 |
def generate_line_drawing_image(description: str) -> str:
|
| 51 |
"""
|
| 52 |
+
Generates a line drawing image based on the given text description.
|
| 53 |
|
| 54 |
+
This tool utilizes a text-to-image model to create a line drawing
|
| 55 |
+
representation of the provided description.
|
|
|
|
| 56 |
|
| 57 |
+
Args:
|
| 58 |
+
description (str): A descriptive text prompt for the image.
|
| 59 |
+
For best results, be as specific as possible in your description.
|
| 60 |
+
Examples:
|
| 61 |
+
- "A cat sitting on a windowsill, looking out at a rainy day"
|
| 62 |
+
- "A futuristic cityscape with towering skyscrapers and flying cars"
|
| 63 |
+
|
| 64 |
+
Returns:
|
| 65 |
str: A URL to the generated image.
|
| 66 |
"""
|
| 67 |
try:
|