Ahsen Khaliq
commited on
Commit
·
ff23408
1
Parent(s):
371ca32
Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,8 @@ from spleeter.separator import Separator
|
|
2 |
import gradio as gr
|
3 |
import shutil
|
4 |
|
|
|
|
|
5 |
def spleeter(aud, instrument):
|
6 |
separator = Separator('spleeter:2stems')
|
7 |
try:
|
|
|
2 |
import gradio as gr
|
3 |
import shutil
|
4 |
|
5 |
+
torch.hub.download_url_to_file('https://github.com/AK391/spleeter/blob/master/audio_example.mp3', 'audio_example.mp3')
|
6 |
+
|
7 |
def spleeter(aud, instrument):
|
8 |
separator = Separator('spleeter:2stems')
|
9 |
try:
|