Omnibus commited on
Commit
9ffc810
1 Parent(s): 29cf60d

Update vc.py

Browse files
Files changed (1) hide show
  1. vc.py +2 -1
vc.py CHANGED
@@ -5,6 +5,7 @@ from pytube import YouTube
5
  from pydub import AudioSegment
6
  from TTS.api import TTS
7
  import uuid
 
8
 
9
  uid = uuid.uuid4()
10
 
@@ -63,7 +64,7 @@ with gr.Blocks() as app:
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")
 
5
  from pydub import AudioSegment
6
  from TTS.api import TTS
7
  import uuid
8
+ import os
9
 
10
  uid = uuid.uuid4()
11
 
 
64
  with gr.Column():
65
 
66
  #in_aud_mic = gr.Audio(source='microphone')
67
+ in_aud_file = gr.Audio(label = 'Audio Source', sources=['microphone','upload'], interactive = True,type='filepath')
68
  aud_file = gr.File(interactive=False,visible=True)
69
  with gr.Row():
70
  start_time = gr.Textbox(label = "Start", value = "0:00", placeholder = "0:23")