Sky9991 commited on
Commit
25dc747
·
verified ·
1 Parent(s): 3a7e8f7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -671,7 +671,7 @@ with gr.Blocks(css=css) as interface:
671
  label="Source face", type="filepath", interactive=True
672
  )
673
 
674
- with gr.Box(visible=False) as specific_face:
675
  for i in range(NUM_OF_SRC_SPECIFIC):
676
  idx = i + 1
677
  code = "\n"
@@ -697,12 +697,12 @@ with gr.Blocks(css=css) as interface:
697
  value="Image",
698
  )
699
 
700
- with gr.Box(visible=True) as input_image_group:
701
  image_input = gr.Image(
702
  label="Target Image", interactive=True, type="filepath"
703
  )
704
 
705
- with gr.Box(visible=False) as input_video_group:
706
  vid_widget = gr.Video if USE_COLAB else gr.Text
707
  video_input = gr.Video(
708
  label="Target Video", interactive=True
@@ -747,7 +747,7 @@ with gr.Blocks(css=css) as interface:
747
  "Trim and Reload", interactive=True
748
  )
749
 
750
- with gr.Box(visible=False) as input_directory_group:
751
  direc_input = gr.Text(label="Path", interactive=True)
752
 
753
  with gr.Column(scale=0.6):
@@ -770,7 +770,7 @@ with gr.Blocks(css=css) as interface:
770
  "📽️", interactive=False, visible=False
771
  )
772
 
773
- with gr.Box():
774
  with gr.Row():
775
  gr.Markdown(
776
  "### [🎭 Sponsor]"
 
671
  label="Source face", type="filepath", interactive=True
672
  )
673
 
674
+ with gr.Row(visible=False) as specific_face:
675
  for i in range(NUM_OF_SRC_SPECIFIC):
676
  idx = i + 1
677
  code = "\n"
 
697
  value="Image",
698
  )
699
 
700
+ with gr.Row(visible=True) as input_image_group:
701
  image_input = gr.Image(
702
  label="Target Image", interactive=True, type="filepath"
703
  )
704
 
705
+ with gr.Row(visible=False) as input_video_group:
706
  vid_widget = gr.Video if USE_COLAB else gr.Text
707
  video_input = gr.Video(
708
  label="Target Video", interactive=True
 
747
  "Trim and Reload", interactive=True
748
  )
749
 
750
+ with gr.Row(visible=False) as input_directory_group:
751
  direc_input = gr.Text(label="Path", interactive=True)
752
 
753
  with gr.Column(scale=0.6):
 
770
  "📽️", interactive=False, visible=False
771
  )
772
 
773
+ with gr.Row():
774
  with gr.Row():
775
  gr.Markdown(
776
  "### [🎭 Sponsor]"