ajayarora1235 commited on
Commit
703346c
1 Parent(s): a3a63dd

fix input audio bug

Browse files
Files changed (1) hide show
  1. app.py +13 -11
app.py CHANGED
@@ -1481,6 +1481,8 @@ def zip_downloader(model):
1481
  else:
1482
  return f'./weights/{model}.pth', "Could not find Index file."
1483
 
 
 
1484
  with gr.Blocks(theme=gr.themes.Default(primary_hue="pink", secondary_hue="rose"), title="Ilaria RVC 💖") as app:
1485
  with gr.Tabs():
1486
  with gr.TabItem("Inference"):
@@ -1526,17 +1528,17 @@ with gr.Blocks(theme=gr.themes.Default(primary_hue="pink", secondary_hue="rose")
1526
  dropbox = gr.File(label="Drag your audio file and click refresh.")
1527
  with gr.Row():
1528
  record_button=gr.Audio(source="microphone", label="Or you can use your microphone!", type="filepath")
1529
- # with gr.Row():
1530
- # input_audio0 = gr.Dropdown(
1531
- # label="2.Choose the audio file.",
1532
- # value="./audios/Test_Audio.mp3",
1533
- # choices=audio_files
1534
- # )
1535
- # dropbox.upload(fn=save_to_wav2, inputs=[dropbox], outputs=[input_audio0])
1536
- # dropbox.upload(fn=change_choices2, inputs=[], outputs=[input_audio0])
1537
- # refresh_button2 = gr.Button("Refresh", variant="primary", size='sm')
1538
- # record_button.change(fn=save_to_wav, inputs=[record_button], outputs=[input_audio0])
1539
- # record_button.change(fn=change_choices2, inputs=[], outputs=[input_audio0])
1540
  # with gr.Row():
1541
  # with gr.Accordion('ElevenLabs / Google TTS', open=False):
1542
  # with gr.Column():
 
1481
  else:
1482
  return f'./weights/{model}.pth', "Could not find Index file."
1483
 
1484
+ download_from_url('https://drive.google.com/file/d/17KaIpC6BkxLnMaaRviW7HnWfIcynEdmX', 'JVKE-main')
1485
+
1486
  with gr.Blocks(theme=gr.themes.Default(primary_hue="pink", secondary_hue="rose"), title="Ilaria RVC 💖") as app:
1487
  with gr.Tabs():
1488
  with gr.TabItem("Inference"):
 
1528
  dropbox = gr.File(label="Drag your audio file and click refresh.")
1529
  with gr.Row():
1530
  record_button=gr.Audio(source="microphone", label="Or you can use your microphone!", type="filepath")
1531
+ with gr.Row():
1532
+ input_audio0 = gr.Dropdown(
1533
+ label="2.Choose the audio file.",
1534
+ value="./audios/Test_Audio.mp3",
1535
+ choices=audio_files
1536
+ )
1537
+ dropbox.upload(fn=save_to_wav2, inputs=[dropbox], outputs=[input_audio0])
1538
+ dropbox.upload(fn=change_choices2, inputs=[], outputs=[input_audio0])
1539
+ refresh_button2 = gr.Button("Refresh", variant="primary", size='sm')
1540
+ record_button.change(fn=save_to_wav, inputs=[record_button], outputs=[input_audio0])
1541
+ record_button.change(fn=change_choices2, inputs=[], outputs=[input_audio0])
1542
  # with gr.Row():
1543
  # with gr.Accordion('ElevenLabs / Google TTS', open=False):
1544
  # with gr.Column():