Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -257,6 +257,8 @@ def run(audio_files, file_m, file_index):
|
|
257 |
|
258 |
|
259 |
def process_audio(audio_files, file_m, file_index):
|
|
|
|
|
260 |
result, first_audio = run(audio_files, file_m, file_index)
|
261 |
|
262 |
# Ensure first_audio is correctly formatted as a valid file path
|
@@ -299,7 +301,7 @@ def button_conf():
|
|
299 |
)
|
300 |
|
301 |
def output_conf():
|
302 |
-
return gr.File(label="Result", file_count="multiple", interactive=False), gr.Audio(label="Play Result",visible=False,show_share_button=False)
|
303 |
|
304 |
def get_gui(theme):
|
305 |
with gr.Blocks(theme=theme, delete_cache=(3200, 3200)) as app:
|
|
|
257 |
|
258 |
|
259 |
def process_audio(audio_files, file_m, file_index):
|
260 |
+
|
261 |
+
gr.update(visible=False)
|
262 |
result, first_audio = run(audio_files, file_m, file_index)
|
263 |
|
264 |
# Ensure first_audio is correctly formatted as a valid file path
|
|
|
301 |
)
|
302 |
|
303 |
def output_conf():
|
304 |
+
return gr.File(label="Result", file_count="multiple", interactive=False), gr.Audio(label="Play Result",visible=False,show_share_button=False,show_download_button=False)
|
305 |
|
306 |
def get_gui(theme):
|
307 |
with gr.Blocks(theme=theme, delete_cache=(3200, 3200)) as app:
|