Spaces:
Runtime error
Runtime error
dreamdrop-art
commited on
Commit
·
ef3889f
1
Parent(s):
341f459
Update app.py
Browse files
app.py
CHANGED
@@ -200,7 +200,7 @@ for model_name in model_list:
|
|
200 |
model_names[name_without_ext] = model_name
|
201 |
|
202 |
|
203 |
-
def txt2img(prompt, negative_prompt, model, steps, sampler, cfg_scale, width, height, seed):
|
204 |
progress(0, desc="Starting")
|
205 |
time.sleep(2.5)
|
206 |
progress(25, desc="Generating")
|
@@ -221,7 +221,7 @@ def txt2img(prompt, negative_prompt, model, steps, sampler, cfg_scale, width, he
|
|
221 |
return job["imageUrl"]
|
222 |
|
223 |
|
224 |
-
def img2img(input_image, denoising, prompt, negative_prompt, model, steps, sampler, cfg_scale, width, height, seed):
|
225 |
progress(0, desc="Starting")
|
226 |
time.sleep(1.5)
|
227 |
progress(10, desc="Uploading input image")
|
|
|
200 |
model_names[name_without_ext] = model_name
|
201 |
|
202 |
|
203 |
+
def txt2img(prompt, negative_prompt, model, steps, sampler, cfg_scale, width, height, seed, progress=gr.Progress()):
|
204 |
progress(0, desc="Starting")
|
205 |
time.sleep(2.5)
|
206 |
progress(25, desc="Generating")
|
|
|
221 |
return job["imageUrl"]
|
222 |
|
223 |
|
224 |
+
def img2img(input_image, denoising, prompt, negative_prompt, model, steps, sampler, cfg_scale, width, height, seed, progress=gr.Progress()):
|
225 |
progress(0, desc="Starting")
|
226 |
time.sleep(1.5)
|
227 |
progress(10, desc="Uploading input image")
|