Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -21,8 +21,8 @@ def generate_image(prompt):
|
|
21 |
# Use the thread-local step index
|
22 |
output = model(
|
23 |
prompt=prompt,
|
24 |
-
num_inference_steps=1, #
|
25 |
-
guidance_scale=0.0,
|
26 |
output_type="pil" # Directly get PIL Image objects
|
27 |
)
|
28 |
|
|
|
21 |
# Use the thread-local step index
|
22 |
output = model(
|
23 |
prompt=prompt,
|
24 |
+
num_inference_steps=1, # Set to a more reasonable default for inference steps
|
25 |
+
guidance_scale=0.0, # Adjust guidance scale for better image quality
|
26 |
output_type="pil" # Directly get PIL Image objects
|
27 |
)
|
28 |
|