Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,7 @@ def audio_separation():
|
|
23 |
f.write(response.content)
|
24 |
|
25 |
# ζ§θ‘ι³ι’ε离ζδ½
|
26 |
-
subprocess.run(['python', 'separate.py',
|
27 |
|
28 |
# ηζε离εηζδ»Άε
|
29 |
vocals_filename = f"{os.path.splitext(mp3_filename)[0]}_vocals.wav"
|
@@ -42,7 +42,7 @@ def audio_separation():
|
|
42 |
|
43 |
@app.route('/download/<filename>', methods=['GET'])
|
44 |
def download(filename):
|
45 |
-
return send_file("/tmp/
|
46 |
|
47 |
if __name__ == '__main__':
|
48 |
app.run(debug=False)
|
|
|
23 |
f.write(response.content)
|
24 |
|
25 |
# ζ§θ‘ι³ι’ε离ζδ½
|
26 |
+
subprocess.run(['python', 'separate.py', '/tmp/' + mp3_filename, '-o', '/tmp', '-m', './models/MDX_Net_Models/UVR-MDX-NET-Inst_HQ_3.onnx'])
|
27 |
|
28 |
# ηζε离εηζδ»Άε
|
29 |
vocals_filename = f"{os.path.splitext(mp3_filename)[0]}_vocals.wav"
|
|
|
42 |
|
43 |
@app.route('/download/<filename>', methods=['GET'])
|
44 |
def download(filename):
|
45 |
+
return send_file("/tmp/" + filename, as_attachment=True)
|
46 |
|
47 |
if __name__ == '__main__':
|
48 |
app.run(debug=False)
|