Update app.py
Browse files
app.py
CHANGED
|
@@ -262,12 +262,19 @@ with gr.Blocks(title="Hex RVC", theme=gr.themes.Base(primary_hue="red", secondar
|
|
| 262 |
gr.Markdown(" join [AIHub](https://discord.gg/aihub) to get the rvc model!")
|
| 263 |
|
| 264 |
with gr.Tab("Inference"):
|
| 265 |
-
|
| 266 |
-
|
| 267 |
-
|
| 268 |
-
|
| 269 |
-
|
| 270 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 271 |
# Button to refresh the list of folders
|
| 272 |
|
| 273 |
with gr.Row():
|
|
@@ -275,12 +282,7 @@ with gr.Blocks(title="Hex RVC", theme=gr.themes.Base(primary_hue="red", secondar
|
|
| 275 |
# SOUND_PATH = gr.Textbox(label="Audio Path (Optional)", placeholder="Leave blank to upload audio")
|
| 276 |
upload_audio = gr.Audio(label="Upload Audio", type='filepath', visible=False)
|
| 277 |
|
| 278 |
-
|
| 279 |
-
choices=load_audio_files(),
|
| 280 |
-
label="Select an audio file",
|
| 281 |
-
interactive=True,
|
| 282 |
-
value=None,
|
| 283 |
-
)
|
| 284 |
|
| 285 |
|
| 286 |
|
|
|
|
| 262 |
gr.Markdown(" join [AIHub](https://discord.gg/aihub) to get the rvc model!")
|
| 263 |
|
| 264 |
with gr.Tab("Inference"):
|
| 265 |
+
with gr.Row():
|
| 266 |
+
MODEL_NAME = gr.Dropdown(
|
| 267 |
+
label="Select a Model",
|
| 268 |
+
choices=get_folders(),
|
| 269 |
+
interactive=True,
|
| 270 |
+
elem_id="model_folder"
|
| 271 |
+
)
|
| 272 |
+
SOUND_PATH = gr.Dropdown(
|
| 273 |
+
choices=load_audio_files(),
|
| 274 |
+
label="Select an audio file",
|
| 275 |
+
interactive=True,
|
| 276 |
+
value=None,
|
| 277 |
+
)
|
| 278 |
# Button to refresh the list of folders
|
| 279 |
|
| 280 |
with gr.Row():
|
|
|
|
| 282 |
# SOUND_PATH = gr.Textbox(label="Audio Path (Optional)", placeholder="Leave blank to upload audio")
|
| 283 |
upload_audio = gr.Audio(label="Upload Audio", type='filepath', visible=False)
|
| 284 |
|
| 285 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 286 |
|
| 287 |
|
| 288 |
|