Spaces:
Runtime error
Runtime error
Daryl Fung
commited on
Commit
•
52121f7
1
Parent(s):
0dcf2b7
updated app.py
Browse files
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
|
1619 |
file = gr.FileExplorer(file_count='single')
|
1620 |
-
|
1621 |
-
file.change(file_changing, file,
|
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):
|