VoiceCloning-be commited on
Commit
9d0f489
·
verified ·
1 Parent(s): 63b5f8f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -520,6 +520,8 @@ def infer_tts_audio(tts_voice, tts_text, play_tts):
520
  return [out_path], out_path
521
  return [out_path], None
522
 
 
 
523
 
524
  def show_components_tts(value_active):
525
  return gr.update(
@@ -626,6 +628,7 @@ def get_gui(theme):
626
 
627
  down_button_gui.click(
628
  get_my_model,
 
629
  [down_url_gui],
630
  [model, indx]
631
  )
 
520
  return [out_path], out_path
521
  return [out_path], None
522
 
523
+ def download_file():
524
+ return [gr.UploadButton(visible=True), gr.DownloadButton(visible=False)]
525
 
526
  def show_components_tts(value_active):
527
  return gr.update(
 
628
 
629
  down_button_gui.click(
630
  get_my_model,
631
+ d = gr.DownloadButton("Download the file", visible=False)
632
  [down_url_gui],
633
  [model, indx]
634
  )