manavisrani07 commited on
Commit
40ce45f
1 Parent(s): 36efa6e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -4,18 +4,18 @@ from subprocess import call
4
 
5
  with gr.Blocks() as ui:
6
  with gr.Row():
7
- video = gr.File(label="Video or Image", info="Filepath of video/image that contains faces to use")
8
- audio = gr.File(label="Audio", info="Filepath of video/audio file to use as raw audio source")
9
  with gr.Column():
10
- checkpoint = gr.Radio(["wav2lip", "wav2lip_gan"], label="Checkpoint", info="Name of saved checkpoint to load weights from")
11
- no_smooth = gr.Checkbox(label="No Smooth", info="Prevent smoothing face detections over a short temporal window")
12
- resize_factor = gr.Slider(minimum=1, maximum=4, step=1, label="Resize Factor", info="Reduce the resolution by this factor. Sometimes, best results are obtained at 480p or 720p")
13
  with gr.Row():
14
  with gr.Column():
15
- pad_top = gr.Slider(minimum=0, maximum=50, step=1, value=0, label="Pad Top", info="Padding above")
16
- pad_bottom = gr.Slider(minimum=0, maximum=50, step=1, value=10, label="Pad Bottom (Often increasing this to 20 allows chin to be included)", info="Padding below lips")
17
- pad_left = gr.Slider(minimum=0, maximum=50, step=1, value=0, label="Pad Left", info="Padding to the left of lips")
18
- pad_right = gr.Slider(minimum=0, maximum=50, step=1, value=0, label="Pad Right", info="Padding to the right of lips")
19
  generate_btn = gr.Button("Generate")
20
  with gr.Column():
21
  result = gr.Video()
 
4
 
5
  with gr.Blocks() as ui:
6
  with gr.Row():
7
+ video = gr.File(label="Video or Image")
8
+ audio = gr.File(label="Audio")
9
  with gr.Column():
10
+ checkpoint = gr.Radio(["wav2lip", "wav2lip_gan"], label="Checkpoint")
11
+ no_smooth = gr.Checkbox(label="No Smooth")
12
+ resize_factor = gr.Slider(minimum=1, maximum=4, step=1, label="Resize Factor")
13
  with gr.Row():
14
  with gr.Column():
15
+ pad_top = gr.Slider(minimum=0, maximum=50, step=1, value=0, label="Pad Top")
16
+ pad_bottom = gr.Slider(minimum=0, maximum=50, step=1, value=10, label="Pad Bottom (Often increasing this to 20 allows chin to be included)")
17
+ pad_left = gr.Slider(minimum=0, maximum=50, step=1, value=0, label="Pad Left")
18
+ pad_right = gr.Slider(minimum=0, maximum=50, step=1, value=0, label="Pad Right")
19
  generate_btn = gr.Button("Generate")
20
  with gr.Column():
21
  result = gr.Video()