Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -120,9 +120,10 @@ def generate_image(stability_api_key, enhanced_prompt, style, negative_prompt):
|
|
120 |
"width": 1024,
|
121 |
"height": 1024,
|
122 |
"num_images": 1,
|
123 |
-
"steps":
|
124 |
-
"cfg_scale": 8,
|
125 |
-
"sampler": "
|
|
|
126 |
}
|
127 |
|
128 |
try:
|
|
|
120 |
"width": 1024,
|
121 |
"height": 1024,
|
122 |
"num_images": 1,
|
123 |
+
"steps": 20, # Increased steps for DPM++ 2S Ancestral
|
124 |
+
"cfg_scale": 8,
|
125 |
+
"sampler": "DPM_2S_ANCESTRAL", # Changed to DPM++ 2S Ancestral
|
126 |
+
"scheduler": "SGM_UNIFORM" # Added scheduler parameter
|
127 |
}
|
128 |
|
129 |
try:
|