GiorgioV commited on
Commit
6e3d0d9
·
verified ·
1 Parent(s): 7cf0e86

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -297,7 +297,7 @@ def generate_video(
297
  cmd_blur = [
298
  'ffmpeg',
299
  '-i', video_with_audio_path, # Используем видео с аудио как источник
300
- '-vf', 'gblur=sigma=5', # Гауссово размытие с sigma=5
301
  '-c:a', 'copy', # Копируем аудио без изменений
302
  '-y',
303
  blurred_video_path
@@ -339,7 +339,8 @@ with gr.Blocks() as demo:
339
 
340
  generate_button = gr.Button("Generate Video", variant="primary")
341
  with gr.Column():
342
- video_output = gr.Video(label="Generated Video", autoplay=True, interactive=False)
 
343
 
344
  ui_inputs = [
345
  input_image_component, prompt_input, steps_slider,
 
297
  cmd_blur = [
298
  'ffmpeg',
299
  '-i', video_with_audio_path, # Используем видео с аудио как источник
300
+ '-vf', 'gblur=sigma=25', # Гауссово размытие с sigma=5
301
  '-c:a', 'copy', # Копируем аудио без изменений
302
  '-y',
303
  blurred_video_path
 
339
 
340
  generate_button = gr.Button("Generate Video", variant="primary")
341
  with gr.Column():
342
+ video_output_1 = gr.Video(label="Generated Video", autoplay=True, interactive=False)
343
+ video_output_2 = gr.Video(label="Generated Video", autoplay=True, interactive=False)
344
 
345
  ui_inputs = [
346
  input_image_component, prompt_input, steps_slider,