Update app.py
Browse files
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"
|
| 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()
|
|
|
|
| 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()
|