Spaces:
Running
on
Zero
Running
on
Zero
MohamedRashad
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
import time
|
2 |
from pathlib import Path
|
|
|
3 |
|
4 |
import gradio as gr
|
5 |
from audio_separator.separator import Separator
|
@@ -13,7 +14,7 @@ def reduce_audio_size(audio_path):
|
|
13 |
s1 = AudioSegment.from_file(audio_path)
|
14 |
s1.export(audio_path, format="mp3", bitrate="64k")
|
15 |
|
16 |
-
|
17 |
def audio_sep(youtube_url, audio_path, separation_model, separation_mode, progress=gr.Progress()):
|
18 |
out_folder = base_path / "audio_filtered"
|
19 |
out_folder.mkdir(exist_ok=True)
|
|
|
1 |
import time
|
2 |
from pathlib import Path
|
3 |
+
import spaces
|
4 |
|
5 |
import gradio as gr
|
6 |
from audio_separator.separator import Separator
|
|
|
14 |
s1 = AudioSegment.from_file(audio_path)
|
15 |
s1.export(audio_path, format="mp3", bitrate="64k")
|
16 |
|
17 |
+
@spaces.GPU()
|
18 |
def audio_sep(youtube_url, audio_path, separation_model, separation_mode, progress=gr.Progress()):
|
19 |
out_folder = base_path / "audio_filtered"
|
20 |
out_folder.mkdir(exist_ok=True)
|