Update vc.py
Browse files
vc.py
CHANGED
@@ -33,7 +33,7 @@ def load_video_yt(vid):
|
|
33 |
return vid, vid_aud, f"{uid}-tmp_aud.mp4"
|
34 |
|
35 |
def trim_clip(clip, start_t, end_t):
|
36 |
-
clip = Path(f"{
|
37 |
song = AudioSegment.from_file(f"{uid}-tmp_aud.mp4", format="mp4")
|
38 |
#song = AudioSegment.from_file(Path(f"{clip}"), format="mp4")
|
39 |
start_min = int(start_t.split(":",1)[0])
|
@@ -83,7 +83,7 @@ with gr.Blocks() as app:
|
|
83 |
|
84 |
#in_aud_file.change(pre_aud,in_aud_file,aud_file)
|
85 |
load_yt_btn.click(load_video_yt, in_aud_yt, [yt_vid,in_aud_file,aud_file])
|
86 |
-
trim_clip_btn.click(trim_clip,[
|
87 |
alt_go_btn.click(custom_bark, [in_text,in_aud_file,trim_aud], out_audio)
|
88 |
|
89 |
app.launch()
|
|
|
33 |
return vid, vid_aud, f"{uid}-tmp_aud.mp4"
|
34 |
|
35 |
def trim_clip(clip, start_t, end_t):
|
36 |
+
clip = Path(f"{clip}")
|
37 |
song = AudioSegment.from_file(f"{uid}-tmp_aud.mp4", format="mp4")
|
38 |
#song = AudioSegment.from_file(Path(f"{clip}"), format="mp4")
|
39 |
start_min = int(start_t.split(":",1)[0])
|
|
|
83 |
|
84 |
#in_aud_file.change(pre_aud,in_aud_file,aud_file)
|
85 |
load_yt_btn.click(load_video_yt, in_aud_yt, [yt_vid,in_aud_file,aud_file])
|
86 |
+
trim_clip_btn.click(trim_clip,[in_aud_file, start_time, end_time],trim_aud)
|
87 |
alt_go_btn.click(custom_bark, [in_text,in_aud_file,trim_aud], out_audio)
|
88 |
|
89 |
app.launch()
|