Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -257,7 +257,7 @@ def generate(video, audio, checkpoint, no_smooth, resize_factor, pad_top, pad_bo
|
|
257 |
"--checkpoint_path", f"checkpoints/{checkpoint}.pth",
|
258 |
"--segmentation_path", "checkpoints/face_segmentation.pth",
|
259 |
"--no_seg",
|
260 |
-
"--no_sr",
|
261 |
"--face", video_path,
|
262 |
"--audio", audio_path,
|
263 |
"--outfile", output_path,
|
@@ -339,7 +339,7 @@ with gr.Blocks() as app:
|
|
339 |
with gr.Column():
|
340 |
checkpoint = gr.Radio(["wav2lip", "wav2lip_gan"], label="Чекпойнт", value="wav2lip_gan", visible=False)
|
341 |
no_smooth = gr.Checkbox(label="Без сглаживания", value=False)
|
342 |
-
resize_factor = gr.Slider(minimum=1, maximum=4, step=1, label="Фактор изменения размера", value=
|
343 |
with gr.Row():
|
344 |
with gr.Column():
|
345 |
pad_top = gr.Slider(minimum=0, maximum=50, step=1, value=0, label="Отступ сверху")
|
|
|
257 |
"--checkpoint_path", f"checkpoints/{checkpoint}.pth",
|
258 |
"--segmentation_path", "checkpoints/face_segmentation.pth",
|
259 |
"--no_seg",
|
260 |
+
# "--no_sr",
|
261 |
"--face", video_path,
|
262 |
"--audio", audio_path,
|
263 |
"--outfile", output_path,
|
|
|
339 |
with gr.Column():
|
340 |
checkpoint = gr.Radio(["wav2lip", "wav2lip_gan"], label="Чекпойнт", value="wav2lip_gan", visible=False)
|
341 |
no_smooth = gr.Checkbox(label="Без сглаживания", value=False)
|
342 |
+
resize_factor = gr.Slider(minimum=1, maximum=4, step=1, label="Фактор изменения размера", value=1)
|
343 |
with gr.Row():
|
344 |
with gr.Column():
|
345 |
pad_top = gr.Slider(minimum=0, maximum=50, step=1, value=0, label="Отступ сверху")
|