OlaWod commited on
Commit
9abf62e
1 Parent(s): 9c07b7b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -89,10 +89,10 @@ def convert(model, src, tgt):
89
  return out
90
 
91
  model = gr.Dropdown(choices=["FreeVC", "FreeVC-s", "FreeVC (24kHz)"], value="FreeVC",type="value", label="Model")
92
- audio1 = gr.inputs.Audio(label="Source Audio", type='filepath')
93
- audio2 = gr.inputs.Audio(label="Reference Audio", type='filepath')
94
  inputs = [model, audio1, audio2]
95
- outputs = gr.outputs.Audio(label="Output Audio", type='filepath')
96
 
97
  title = "FreeVC"
98
  description = "Gradio Demo for FreeVC: Towards High-Quality Text-Free One-Shot Voice Conversion. To use it, simply upload your audio, or click the example to load. Read more at the links below. Note: It seems that the WavLM checkpoint in HuggingFace is a little different from the one used to train FreeVC, which may degrade the performance a bit. In addition, speaker similarity can be largely affected if there are too much silence in the reference audio, so please <strong>trim</strong> it before submitting."
@@ -100,4 +100,4 @@ article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2210.154
100
 
101
  examples=[["FreeVC", 'p225_001.wav', 'p226_002.wav'], ["FreeVC-s", 'p226_002.wav', 'p225_001.wav'], ["FreeVC (24kHz)", 'p225_001.wav', 'p226_002.wav']]
102
 
103
- gr.Interface(convert, inputs, outputs, title=title, description=description, article=article, examples=examples, enable_queue=True).launch()
 
89
  return out
90
 
91
  model = gr.Dropdown(choices=["FreeVC", "FreeVC-s", "FreeVC (24kHz)"], value="FreeVC",type="value", label="Model")
92
+ audio1 = gr.Audio(label="Source Audio", type='filepath')
93
+ audio2 = gr.Audio(label="Reference Audio", type='filepath')
94
  inputs = [model, audio1, audio2]
95
+ outputs = gr.Audio(label="Output Audio", type='filepath')
96
 
97
  title = "FreeVC"
98
  description = "Gradio Demo for FreeVC: Towards High-Quality Text-Free One-Shot Voice Conversion. To use it, simply upload your audio, or click the example to load. Read more at the links below. Note: It seems that the WavLM checkpoint in HuggingFace is a little different from the one used to train FreeVC, which may degrade the performance a bit. In addition, speaker similarity can be largely affected if there are too much silence in the reference audio, so please <strong>trim</strong> it before submitting."
 
100
 
101
  examples=[["FreeVC", 'p225_001.wav', 'p226_002.wav'], ["FreeVC-s", 'p226_002.wav', 'p225_001.wav'], ["FreeVC (24kHz)", 'p225_001.wav', 'p226_002.wav']]
102
 
103
+ gr.Interface(convert, inputs, outputs, title=title, description=description, article=article, examples=examples).launch()