Spaces:
Paused
Paused
P01yH3dr0n
commited on
Commit
•
dc7ced4
1
Parent(s):
a8f49b5
Update app.py
Browse files
app.py
CHANGED
@@ -107,7 +107,6 @@ def generate(prompt, quality_tags, neg_prompt, seed, scale, width, height, steps
|
|
107 |
return None, payload
|
108 |
today_count += 1
|
109 |
img = image_from_bytes(img_data)
|
110 |
-
filename = str(today_count).rjust(5, '0') + '-' + str(payload['parameters']['seed']) + '.png'
|
111 |
return img, payload
|
112 |
|
113 |
|
@@ -125,7 +124,7 @@ def main_ui():
|
|
125 |
gen_btn, paras, others = control_ui()
|
126 |
with gr.Column():
|
127 |
image, info = preview_ui()
|
128 |
-
gen_btn.click(generate, paras + [others[0]], [image, info]
|
129 |
others[2].click(lambda o, s: o if len(s) == 0 else s['parameters']['seed'], inputs=[paras[3], info], outputs=paras[3])
|
130 |
others[3].click(lambda i: i, inputs=image, outputs=paras[14])
|
131 |
others[4].click(lambda i: i, inputs=image, outputs=paras[17])
|
|
|
107 |
return None, payload
|
108 |
today_count += 1
|
109 |
img = image_from_bytes(img_data)
|
|
|
110 |
return img, payload
|
111 |
|
112 |
|
|
|
124 |
gen_btn, paras, others = control_ui()
|
125 |
with gr.Column():
|
126 |
image, info = preview_ui()
|
127 |
+
gen_btn.click(generate, paras + [others[0]], [image, info])
|
128 |
others[2].click(lambda o, s: o if len(s) == 0 else s['parameters']['seed'], inputs=[paras[3], info], outputs=paras[3])
|
129 |
others[3].click(lambda i: i, inputs=image, outputs=paras[14])
|
130 |
others[4].click(lambda i: i, inputs=image, outputs=paras[17])
|