fffiloni commited on
Commit
0503c8e
1 Parent(s): 5c4b12c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -4,6 +4,7 @@ from bark.generation import load_codec_model, generate_text_semantic
4
  from encodec.utils import convert_audio
5
  import torchaudio
6
  import torch
 
7
 
8
  model = load_codec_model(use_gpu=True)
9
 
@@ -51,7 +52,7 @@ title="""
51
  with gr.Blocks(css=css) as demo:
52
  with gr.Column(elem_id="col-container"):
53
  gr.HTML(title)
54
- audio_in = gr.Audio(label="Voice in to clone", source="upload", type="filepath")
55
  transcript = gr.Textbox(label="Manual transcription of your audio")
56
  name = gr.Textbox(label="Name your voice")
57
 
 
4
  from encodec.utils import convert_audio
5
  import torchaudio
6
  import torch
7
+ #from pydub import AudioSegment
8
 
9
  model = load_codec_model(use_gpu=True)
10
 
 
52
  with gr.Blocks(css=css) as demo:
53
  with gr.Column(elem_id="col-container"):
54
  gr.HTML(title)
55
+ audio_in = gr.Audio(label="Voice in to clone", source="microphone", type="filepath")
56
  transcript = gr.Textbox(label="Manual transcription of your audio")
57
  name = gr.Textbox(label="Name your voice")
58