Spaces:
Runtime error
Runtime error
Update vc.py
Browse files
vc.py
CHANGED
@@ -46,6 +46,7 @@ def trim_clip(clip, start_t, end_t):
|
|
46 |
def pre_aud(inp):
|
47 |
song = AudioSegment.from_file(Path(f'{inp}', format="mp4"))
|
48 |
song.export(f"{uid}-tmp_aud.mp4", format="mp4")
|
|
|
49 |
return f"{uid}-tmp_aud.mp4"
|
50 |
with gr.Blocks() as app:
|
51 |
with gr.Box():
|
@@ -75,7 +76,7 @@ with gr.Blocks() as app:
|
|
75 |
|
76 |
|
77 |
|
78 |
-
in_aud_file.change(pre_aud,in_aud_file,aud_file)
|
79 |
load_yt_btn.click(load_video_yt, in_aud_yt, [yt_vid,in_aud_file,aud_file])
|
80 |
trim_clip_btn.click(trim_clip,[aud_file, start_time, end_time],trim_aud)
|
81 |
alt_go_btn.click(custom_bark, [in_text,in_aud_file,trim_aud, in_aud_mic], out_audio)
|
|
|
46 |
def pre_aud(inp):
|
47 |
song = AudioSegment.from_file(Path(f'{inp}', format="mp4"))
|
48 |
song.export(f"{uid}-tmp_aud.mp4", format="mp4")
|
49 |
+
print(f'pre_aud:: {f"{uid}-tmp_aud.mp4"}')
|
50 |
return f"{uid}-tmp_aud.mp4"
|
51 |
with gr.Blocks() as app:
|
52 |
with gr.Box():
|
|
|
76 |
|
77 |
|
78 |
|
79 |
+
#in_aud_file.change(pre_aud,in_aud_file,aud_file)
|
80 |
load_yt_btn.click(load_video_yt, in_aud_yt, [yt_vid,in_aud_file,aud_file])
|
81 |
trim_clip_btn.click(trim_clip,[aud_file, start_time, end_time],trim_aud)
|
82 |
alt_go_btn.click(custom_bark, [in_text,in_aud_file,trim_aud, in_aud_mic], out_audio)
|