Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,8 @@ logger = logging.getLogger(__name__)
|
|
23 |
# Constants
|
24 |
TEMP_DIR = "temp"
|
25 |
MODEL_PREFIX = "model"
|
26 |
-
|
|
|
27 |
UVR_5_MODELS = [
|
28 |
{"model_name": "BS-Roformer-Viperx-1297", "checkpoint": "model_bs_roformer_ep_317_sdr_12.9755.ckpt"},
|
29 |
{"model_name": "MDX23C-InstVoc HQ 2", "checkpoint": "MDX23C-8KFFT-InstVoc_HQ_2.ckpt"},
|
@@ -209,7 +210,7 @@ with gr.Blocks(theme=gr.themes.Soft(primary_hue="pink", secondary_hue="rose"), t
|
|
209 |
button_tts.click(text_to_speech_edge, inputs=[text_tts, dropdown_tts], outputs=sound_gui)
|
210 |
|
211 |
with gr.Accordion("Conversion Settings", open=False):
|
212 |
-
pitch_algo_conf = gr.
|
213 |
with gr.Row(equal_height=True):
|
214 |
pitch_lvl_conf = gr.Slider(label="Pitch Level", minimum=-24, maximum=24, step=1, value=0, info="Adjust pitch: negative for male, positive for female")
|
215 |
index_inf_conf = gr.Slider(minimum=0, maximum=1, value=0.75, label="Index Influence", info="Controls how much accent is applied")
|
|
|
23 |
# Constants
|
24 |
TEMP_DIR = "temp"
|
25 |
MODEL_PREFIX = "model"
|
26 |
+
|
27 |
+
|
28 |
UVR_5_MODELS = [
|
29 |
{"model_name": "BS-Roformer-Viperx-1297", "checkpoint": "model_bs_roformer_ep_317_sdr_12.9755.ckpt"},
|
30 |
{"model_name": "MDX23C-InstVoc HQ 2", "checkpoint": "MDX23C-8KFFT-InstVoc_HQ_2.ckpt"},
|
|
|
210 |
button_tts.click(text_to_speech_edge, inputs=[text_tts, dropdown_tts], outputs=sound_gui)
|
211 |
|
212 |
with gr.Accordion("Conversion Settings", open=False):
|
213 |
+
pitch_algo_conf = gr.Radio(choices=["pm", "harvest", "crepe", "rmvpe", "rmvpe+"], value="rmvpe", label="Pitch Algorithm", info="Select the algorithm for pitch detection")
|
214 |
with gr.Row(equal_height=True):
|
215 |
pitch_lvl_conf = gr.Slider(label="Pitch Level", minimum=-24, maximum=24, step=1, value=0, info="Adjust pitch: negative for male, positive for female")
|
216 |
index_inf_conf = gr.Slider(minimum=0, maximum=1, value=0.75, label="Index Influence", info="Controls how much accent is applied")
|