Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -250,7 +250,7 @@ def run(audio_files, file_m, file_index):
|
|
250 |
return result[0] # Return the first (and only) file path
|
251 |
|
252 |
|
253 |
-
def process_audio(audio_file,
|
254 |
if audio_file is not None:
|
255 |
result = run([audio_file], file_m, file_index)
|
256 |
else:
|
@@ -284,6 +284,7 @@ def button_conf():
|
|
284 |
variant="primary",
|
285 |
)
|
286 |
|
|
|
287 |
def get_gui(theme):
|
288 |
with gr.Blocks(theme=theme, delete_cache=(3200, 3200)) as app:
|
289 |
gr.Markdown(title)
|
@@ -300,7 +301,7 @@ def get_gui(theme):
|
|
300 |
|
301 |
button_base.click(
|
302 |
process_audio,
|
303 |
-
inputs=[audio,
|
304 |
outputs=[output_audio, output_files], # Only need to output the audio file for playback and download
|
305 |
)
|
306 |
|
|
|
250 |
return result[0] # Return the first (and only) file path
|
251 |
|
252 |
|
253 |
+
def process_audio(audio_file, file_m, file_index):
|
254 |
if audio_file is not None:
|
255 |
result = run([audio_file], file_m, file_index)
|
256 |
else:
|
|
|
284 |
variant="primary",
|
285 |
)
|
286 |
|
287 |
+
|
288 |
def get_gui(theme):
|
289 |
with gr.Blocks(theme=theme, delete_cache=(3200, 3200)) as app:
|
290 |
gr.Markdown(title)
|
|
|
301 |
|
302 |
button_base.click(
|
303 |
process_audio,
|
304 |
+
inputs=[audio, model, indx], # Removed None, keeping only valid inputs
|
305 |
outputs=[output_audio, output_files], # Only need to output the audio file for playback and download
|
306 |
)
|
307 |
|