Update app.py
Browse files309 unmodified lines3103113123133143153163173183193203214 unmodified lines326327328329309 unmodified linesgallery_html += "</div>"gr.HTML(gallery_html)# 이벤트 바인딩generate_btn.click(fn=generate_image,inputs=[height, width, steps, scales, prompt, seed], # 딕셔너리 대신 순서대로 리스트outputs=output)4 unmodified lines)if __name__ == "__main__":demo.launch(allowed_paths=[PERSISTENT_DIR])309 unmodified lines3103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393404 unmodified lines345346347348309 unmodified linesgallery_html += "</div>"gr.HTML(gallery_html)# 이벤트 핸들러 부분만 수정def generate_image(h, w, s, sc, p, sd):return process_and_save_image(height=h,width=w,steps=s,scales=sc,prompt=p,seed=sd)def update_random_seed():return gr.update(value=get_random_seed())# 이벤트 바인딩generate_btn.click(fn=process_and_save_image, # 직접 process_and_save_image 함수 사용inputs={"height": height,"width": width,"steps": steps,"scales": scales,"prompt": prompt,"seed": seed},outputs=output)4 unmodified lines)if __name__ == "__main__":demo.launch(allowed_paths=[PERSISTENT_DIR])
app.py+22-3