Update app.py
Browse files
app.py
CHANGED
@@ -71,12 +71,13 @@ def query(prompt, negative_prompt, steps=4, cfg_scale=0, seed=-1, width=1024, he
|
|
71 |
payload = {
|
72 |
"inputs": final_prompt,
|
73 |
"negative_prompt": negative_prompt,
|
74 |
-
"
|
75 |
"guidance_scale": cfg_scale, # API often uses guidance_scale
|
76 |
"seed": seed if seed != -1 else random.randint(1, 1000000000),
|
77 |
"parameters": { # Nested parameters as per original structure
|
78 |
"width": width,
|
79 |
"height": height,
|
|
|
80 |
}
|
81 |
# Add other parameters here if needed (e.g., sampler if supported)
|
82 |
}
|
|
|
71 |
payload = {
|
72 |
"inputs": final_prompt,
|
73 |
"negative_prompt": negative_prompt,
|
74 |
+
"num_inference_steps": steps,
|
75 |
"guidance_scale": cfg_scale, # API often uses guidance_scale
|
76 |
"seed": seed if seed != -1 else random.randint(1, 1000000000),
|
77 |
"parameters": { # Nested parameters as per original structure
|
78 |
"width": width,
|
79 |
"height": height,
|
80 |
+
"num_inference_steps": steps,
|
81 |
}
|
82 |
# Add other parameters here if needed (e.g., sampler if supported)
|
83 |
}
|