Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -313,21 +313,29 @@ with gr.Blocks(
|
|
313 |
gallery_html += "</div>"
|
314 |
gr.HTML(gallery_html)
|
315 |
|
|
|
316 |
def update_seed():
|
317 |
return get_random_seed()
|
318 |
|
319 |
# 이벤트 핸들러
|
320 |
generate_btn.click(
|
321 |
-
process_and_save_image,
|
322 |
-
inputs=[
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
323 |
outputs=output
|
324 |
).then(
|
325 |
-
update_seed,
|
326 |
outputs=[seed]
|
327 |
)
|
328 |
|
329 |
randomize_seed.click(
|
330 |
-
update_seed,
|
331 |
outputs=[seed]
|
332 |
)
|
333 |
|
|
|
313 |
gallery_html += "</div>"
|
314 |
gr.HTML(gallery_html)
|
315 |
|
316 |
+
# 이벤트 핸들러 부분을 수정
|
317 |
def update_seed():
|
318 |
return get_random_seed()
|
319 |
|
320 |
# 이벤트 핸들러
|
321 |
generate_btn.click(
|
322 |
+
fn=process_and_save_image,
|
323 |
+
inputs=[
|
324 |
+
height,
|
325 |
+
width,
|
326 |
+
steps,
|
327 |
+
scales,
|
328 |
+
prompt,
|
329 |
+
seed
|
330 |
+
],
|
331 |
outputs=output
|
332 |
).then(
|
333 |
+
fn=update_seed,
|
334 |
outputs=[seed]
|
335 |
)
|
336 |
|
337 |
randomize_seed.click(
|
338 |
+
fn=update_seed,
|
339 |
outputs=[seed]
|
340 |
)
|
341 |
|