Update app.py
Browse files
app.py
CHANGED
@@ -339,8 +339,7 @@ with gr.Blocks(css=css) as demo:
|
|
339 |
fn=infer,
|
340 |
inputs=[input_image, width_slider, height_slider, overlap_width, num_inference_steps,
|
341 |
resize_option, custom_resize_size, prompt_input, alignment_dropdown],
|
342 |
-
outputs=result
|
343 |
-
stream=True # 추가: infer 함수가 제너레이터이므로 스트리밍 활성화
|
344 |
).then(
|
345 |
fn=lambda: gr.update(visible=True),
|
346 |
inputs=None,
|
@@ -355,8 +354,7 @@ with gr.Blocks(css=css) as demo:
|
|
355 |
fn=infer,
|
356 |
inputs=[input_image, width_slider, height_slider, overlap_width, num_inference_steps,
|
357 |
resize_option, custom_resize_size, prompt_input, alignment_dropdown],
|
358 |
-
outputs=result
|
359 |
-
stream=True # 추가: 제너레이터 함수이므로 스트리밍 활성화
|
360 |
).then(
|
361 |
fn=lambda: gr.update(visible=True),
|
362 |
inputs=None,
|
|
|
339 |
fn=infer,
|
340 |
inputs=[input_image, width_slider, height_slider, overlap_width, num_inference_steps,
|
341 |
resize_option, custom_resize_size, prompt_input, alignment_dropdown],
|
342 |
+
outputs=result
|
|
|
343 |
).then(
|
344 |
fn=lambda: gr.update(visible=True),
|
345 |
inputs=None,
|
|
|
354 |
fn=infer,
|
355 |
inputs=[input_image, width_slider, height_slider, overlap_width, num_inference_steps,
|
356 |
resize_option, custom_resize_size, prompt_input, alignment_dropdown],
|
357 |
+
outputs=result
|
|
|
358 |
).then(
|
359 |
fn=lambda: gr.update(visible=True),
|
360 |
inputs=None,
|