Hev832 commited on
Commit
b609293
1 Parent(s): d6380da

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -12
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
- MODEL_NAME = gr.Dropdown(
266
- label="Select a Model",
267
- choices=get_folders(),
268
- interactive=True,
269
- elem_id="model_folder"
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
- SOUND_PATH = gr.Dropdown(
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