Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -22,13 +22,13 @@ client = InferenceClient()
|
|
| 22 |
@tool
|
| 23 |
def generate_image(description: str) -> str:
|
| 24 |
"""
|
| 25 |
-
Generates an image based on
|
| 26 |
|
| 27 |
Args:
|
| 28 |
-
description (str):
|
| 29 |
|
| 30 |
Returns:
|
| 31 |
-
str: A URL to the generated image or an error message.
|
| 32 |
"""
|
| 33 |
try:
|
| 34 |
model_id = "stabilityai/stable-diffusion-xl-base-1.0"
|
|
|
|
| 22 |
@tool
|
| 23 |
def generate_image(description: str) -> str:
|
| 24 |
"""
|
| 25 |
+
Generates an image based on a given text description.
|
| 26 |
|
| 27 |
Args:
|
| 28 |
+
description (str): A detailed textual description of the image to be generated.
|
| 29 |
|
| 30 |
Returns:
|
| 31 |
+
str: A URL to the generated image or an error message if the generation fails.
|
| 32 |
"""
|
| 33 |
try:
|
| 34 |
model_id = "stabilityai/stable-diffusion-xl-base-1.0"
|