Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -15,12 +15,15 @@ def split_audio(audio_filepath):
|
|
15 |
subprocess.run(f"ffmpeg -i '{vocal_file}' '{mp3_vocal_file}'", shell=True)
|
16 |
return mp3_vocal_file
|
17 |
|
18 |
-
|
19 |
-
|
20 |
-
gr.
|
21 |
-
|
22 |
-
)
|
|
|
|
|
|
|
23 |
|
24 |
if __name__=="__main__":
|
25 |
-
|
26 |
|
|
|
15 |
subprocess.run(f"ffmpeg -i '{vocal_file}' '{mp3_vocal_file}'", shell=True)
|
16 |
return mp3_vocal_file
|
17 |
|
18 |
+
with gr.Blocks() as demo:
|
19 |
+
gr.Markdown("# Audio Source Separator")
|
20 |
+
with gr.Row():
|
21 |
+
input_file = gr.File(label="Input audio file", type=["audio"])
|
22 |
+
output_file = gr.File(label="Output audio file", type=["audio"])
|
23 |
+
submit_btn = gr.Button("Submit")
|
24 |
+
submit_btn.click(split_audio, input_file, output_file)
|
25 |
+
|
26 |
|
27 |
if __name__=="__main__":
|
28 |
+
demo.queue().launch(auth=(os.environ["USERNAME"], os.environ["PASSWORD"]))
|
29 |
|