Spaces:
Runtime error
Runtime error
Daryl Fung
commited on
Commit
•
7506f3d
1
Parent(s):
f796b4b
updated app.py
Browse files
app.py
CHANGED
@@ -1605,12 +1605,10 @@ with gr.Blocks(title="RVC WebUI") as app:
|
|
1605 |
def upload_file(filepath):
|
1606 |
filename = os.path.basename(filepath)
|
1607 |
shutil.copy(name, os.path.join('audios', filename))
|
1608 |
-
upload_button = gr.UploadButton(label=f"Upload", visible=
|
1609 |
upload_button.upload(upload_file, upload_button, None)
|
1610 |
|
1611 |
with gr.TabItem("File Explorer (download)"):
|
1612 |
-
gr.Markdown('### `FileExplorer` to `FileExplorer` -- `file_count="single"`')
|
1613 |
-
download_submit_btn = gr.Button("Select")
|
1614 |
with gr.Row():
|
1615 |
def file_changing(x):
|
1616 |
name = Path(x).name
|
|
|
1605 |
def upload_file(filepath):
|
1606 |
filename = os.path.basename(filepath)
|
1607 |
shutil.copy(name, os.path.join('audios', filename))
|
1608 |
+
upload_button = gr.UploadButton(label=f"Upload", visible=True, file_count='single')
|
1609 |
upload_button.upload(upload_file, upload_button, None)
|
1610 |
|
1611 |
with gr.TabItem("File Explorer (download)"):
|
|
|
|
|
1612 |
with gr.Row():
|
1613 |
def file_changing(x):
|
1614 |
name = Path(x).name
|