Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -40,6 +40,7 @@ def generate_image(prompt, option, progress=gr.Progress()):
|
|
40 |
step_loaded = step
|
41 |
def inference_callback(p, i, t, kwargs):
|
42 |
progress(i+1, total=step)
|
|
|
43 |
return pipe(prompt, num_inference_steps=step, guidance_scale=0, callback_on_step_end=inference_callback).images[0]
|
44 |
|
45 |
with gr.Blocks(css="style.css") as demo:
|
|
|
40 |
step_loaded = step
|
41 |
def inference_callback(p, i, t, kwargs):
|
42 |
progress(i+1, total=step)
|
43 |
+
return kwargs
|
44 |
return pipe(prompt, num_inference_steps=step, guidance_scale=0, callback_on_step_end=inference_callback).images[0]
|
45 |
|
46 |
with gr.Blocks(css="style.css") as demo:
|