Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ model = AutoPipelineForText2Image.from_pretrained("stabilityai/sdxl-turbo")
|
|
11 |
async def generate_image(prompt):
|
12 |
try:
|
13 |
# Use a higher value for num_inference_steps to avoid IndexError
|
14 |
-
num_inference_steps =
|
15 |
|
16 |
# Use the model to generate an image
|
17 |
output = await asyncio.to_thread(
|
|
|
11 |
async def generate_image(prompt):
|
12 |
try:
|
13 |
# Use a higher value for num_inference_steps to avoid IndexError
|
14 |
+
num_inference_steps = 3 # Adjust this value as needed
|
15 |
|
16 |
# Use the model to generate an image
|
17 |
output = await asyncio.to_thread(
|