Daryl Fung commited on
Commit
52121f7
1 Parent(s): 0dcf2b7

updated app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -1612,13 +1612,11 @@ with gr.Blocks(title="RVC WebUI") as app:
1612
  with gr.TabItem("File Explorer (download)"):
1613
  with gr.Row():
1614
  def file_changing(x):
1615
- print('@@@@@@@@@@@@@@@@@@')
1616
- print(x)
1617
  name = Path(x).name
1618
- return gr.DownloadButton(label=f"Download {name}", value=name, visible=True)
1619
  file = gr.FileExplorer(file_count='single')
1620
- download_button = gr.DownloadButton(label=f"Download", visible=False)
1621
- file.change(file_changing, file, download_button)
1622
 
1623
  tab_faq = i18n("常见问题解答")
1624
  with gr.TabItem(tab_faq):
 
1612
  with gr.TabItem("File Explorer (download)"):
1613
  with gr.Row():
1614
  def file_changing(x):
 
 
1615
  name = Path(x).name
1616
+ return names
1617
  file = gr.FileExplorer(file_count='single')
1618
+ download_file_button = gr.File()
1619
+ file.change(file_changing, file, download_file_button)
1620
 
1621
  tab_faq = i18n("常见问题解答")
1622
  with gr.TabItem(tab_faq):