ucancode commited on
Commit
7aa2615
1 Parent(s): 6adb693

output image 수정하기

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -61,11 +61,10 @@ with gr.Blocks() as demo:
61
  with gr.Column():
62
  name = gr.Textbox(label="이름(파일저장용)")
63
  with gr.Row():
64
- user_image_input = gr.Image(type="pil", label="유저사진(얼굴추출)", width=300, height=300)
65
- result_image_input = gr.Image(type="pil", label="결과물 사진", width=300, height=300)
66
  swap_btn = gr.Button("Swap Faces")
67
- with gr.Column():
68
- output_image = gr.Image(label="합성 후 사진", width=300, height=300)
69
  swap_btn.click(fn=faceswapper, inputs=[user_image_input, result_image_input, name], outputs=output_image)
70
 
71
  demo.launch(debug=True)
 
61
  with gr.Column():
62
  name = gr.Textbox(label="이름(파일저장용)")
63
  with gr.Row():
64
+ user_image_input = gr.Image(type="pil", label="유저사진(얼굴추출)", width=512, height=512)
65
+ result_image_input = gr.Image(type="pil", label="결과물 사진", width=512, height=512)
66
  swap_btn = gr.Button("Swap Faces")
67
+ output_image = gr.Image(label="합성 후 사진", width=512, height=512)
 
68
  swap_btn.click(fn=faceswapper, inputs=[user_image_input, result_image_input, name], outputs=output_image)
69
 
70
  demo.launch(debug=True)