Update vc.py
Browse files
vc.py
CHANGED
@@ -7,6 +7,8 @@ from TTS.api import TTS
|
|
7 |
import uuid
|
8 |
import os
|
9 |
|
|
|
|
|
10 |
uid = uuid.uuid4()
|
11 |
|
12 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
@@ -65,7 +67,7 @@ with gr.Blocks() as app:
|
|
65 |
with gr.Column():
|
66 |
|
67 |
#in_aud_mic = gr.Audio(source='microphone')
|
68 |
-
in_aud_file = gr.Audio(label = 'Audio Source', sources=['microphone','upload'], interactive = True,type='filepath')
|
69 |
aud_file = gr.File(interactive=False,visible=True)
|
70 |
with gr.Row():
|
71 |
start_time = gr.Textbox(label = "Start", value = "0:00", placeholder = "0:23")
|
|
|
7 |
import uuid
|
8 |
import os
|
9 |
|
10 |
+
test_audio="./shufflin.wav"
|
11 |
+
|
12 |
uid = uuid.uuid4()
|
13 |
|
14 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
|
67 |
with gr.Column():
|
68 |
|
69 |
#in_aud_mic = gr.Audio(source='microphone')
|
70 |
+
in_aud_file = gr.Audio(label = 'Audio Source', sources=['microphone','upload'], interactive = True,type='filepath', value=test_audio)
|
71 |
aud_file = gr.File(interactive=False,visible=True)
|
72 |
with gr.Row():
|
73 |
start_time = gr.Textbox(label = "Start", value = "0:00", placeholder = "0:23")
|