Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -45,7 +45,7 @@ def load_video_yt(vid):
|
|
45 |
def trim_clip(clip):
|
46 |
start_pos = 1
|
47 |
duration = 10
|
48 |
-
audio_input = ffmpeg.input(
|
49 |
audio_output = ffmpeg.output(audio_input, save_location, ss=start_pos, t=duration)
|
50 |
audio_output.run()
|
51 |
return audio_output
|
@@ -77,7 +77,7 @@ with gr.Blocks() as app:
|
|
77 |
|
78 |
go_btn.click(run_bark,[in_text, speaker_num, speaker_lang],out_audio)
|
79 |
load_yt_btn.click(load_video_yt, in_aud_yt, [yt_vid,in_aud_file])
|
80 |
-
trim_clip_btn.click(trim_clip,
|
81 |
#alt_go_btn.click()
|
82 |
|
83 |
app.launch()
|
|
|
45 |
def trim_clip(clip):
|
46 |
start_pos = 1
|
47 |
duration = 10
|
48 |
+
audio_input = ffmpeg.input(clip)
|
49 |
audio_output = ffmpeg.output(audio_input, save_location, ss=start_pos, t=duration)
|
50 |
audio_output.run()
|
51 |
return audio_output
|
|
|
77 |
|
78 |
go_btn.click(run_bark,[in_text, speaker_num, speaker_lang],out_audio)
|
79 |
load_yt_btn.click(load_video_yt, in_aud_yt, [yt_vid,in_aud_file])
|
80 |
+
trim_clip_btn.click(trim_clip,in_aud_file,trim_aud)
|
81 |
#alt_go_btn.click()
|
82 |
|
83 |
app.launch()
|