Spaces:
Runtime error
Runtime error
Update vc.py
Browse files
vc.py
CHANGED
@@ -62,8 +62,8 @@ with gr.Blocks() as app:
|
|
62 |
with gr.Row():
|
63 |
with gr.Column():
|
64 |
|
65 |
-
in_aud_mic = gr.Audio(source='microphone')
|
66 |
-
in_aud_file = gr.Audio(label = 'Audio Source',
|
67 |
aud_file = gr.File(interactive=False,visible=True)
|
68 |
with gr.Row():
|
69 |
start_time = gr.Textbox(label = "Start", value = "0:00", placeholder = "0:23")
|
@@ -80,6 +80,6 @@ with gr.Blocks() as app:
|
|
80 |
in_aud_file.change(pre_aud,in_aud_file,aud_file)
|
81 |
load_yt_btn.click(load_video_yt, in_aud_yt, [yt_vid,in_aud_file,aud_file])
|
82 |
trim_clip_btn.click(trim_clip,[aud_file, start_time, end_time],trim_aud)
|
83 |
-
alt_go_btn.click(custom_bark, [in_text,in_aud_file,trim_aud
|
84 |
|
85 |
app.launch()
|
|
|
62 |
with gr.Row():
|
63 |
with gr.Column():
|
64 |
|
65 |
+
#in_aud_mic = gr.Audio(source='microphone')
|
66 |
+
in_aud_file = gr.Audio(label = 'Audio Source', sources=['microphone','upload'], interactive = True)
|
67 |
aud_file = gr.File(interactive=False,visible=True)
|
68 |
with gr.Row():
|
69 |
start_time = gr.Textbox(label = "Start", value = "0:00", placeholder = "0:23")
|
|
|
80 |
in_aud_file.change(pre_aud,in_aud_file,aud_file)
|
81 |
load_yt_btn.click(load_video_yt, in_aud_yt, [yt_vid,in_aud_file,aud_file])
|
82 |
trim_clip_btn.click(trim_clip,[aud_file, start_time, end_time],trim_aud)
|
83 |
+
alt_go_btn.click(custom_bark, [in_text,in_aud_file,trim_aud], out_audio)
|
84 |
|
85 |
app.launch()
|