Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -313,17 +313,21 @@ with gr.Blocks(
|
|
313 |
gallery_html += "</div>"
|
314 |
gr.HTML(gallery_html)
|
315 |
|
316 |
-
|
|
|
|
|
317 |
generate_btn.click(
|
318 |
fn=process_and_save_image,
|
319 |
-
inputs=
|
320 |
-
outputs=output
|
321 |
)
|
322 |
|
323 |
randomize_seed.click(
|
324 |
fn=get_random_seed,
|
325 |
-
outputs=seed
|
326 |
)
|
327 |
|
328 |
if __name__ == "__main__":
|
329 |
-
demo.launch(allowed_paths=[PERSISTENT_DIR])
|
|
|
|
|
|
313 |
gallery_html += "</div>"
|
314 |
gr.HTML(gallery_html)
|
315 |
|
316 |
+
# 이벤트 핸들러 부분만 수정
|
317 |
+
inputs_list = [height, width, steps, scales, prompt, seed]
|
318 |
+
|
319 |
generate_btn.click(
|
320 |
fn=process_and_save_image,
|
321 |
+
inputs=inputs_list,
|
322 |
+
outputs=[output]
|
323 |
)
|
324 |
|
325 |
randomize_seed.click(
|
326 |
fn=get_random_seed,
|
327 |
+
outputs=[seed]
|
328 |
)
|
329 |
|
330 |
if __name__ == "__main__":
|
331 |
+
demo.launch(allowed_paths=[PERSISTENT_DIR])
|
332 |
+
|
333 |
+
|