Spaces:
Running
Running
Update app.py
Browse files
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.
|
93 |
-
audio2 = gr.
|
94 |
inputs = [model, audio1, audio2]
|
95 |
-
outputs = gr.
|
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
|
|
|
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()
|