Spaces:
Running on Zero
Running on Zero
Sync from Jahmori-R/PureVoiceAI-HG via hub-sync
Browse files
app.py
CHANGED
|
@@ -35,11 +35,6 @@ mixtures = Path(os.getcwd())/"mixtures"
|
|
| 35 |
# Name of separated file folder
|
| 36 |
sources = Path(os.getcwd()) / "sources"
|
| 37 |
|
| 38 |
-
# Creates mixture directory
|
| 39 |
-
Path.mkdir(mixtures, exist_ok=True)
|
| 40 |
-
|
| 41 |
-
# Creates separated directory
|
| 42 |
-
Path.mkdir(sources, exist_ok=True)
|
| 43 |
|
| 44 |
# Path checking for removing source directory every run
|
| 45 |
def reset_dir():
|
|
@@ -88,6 +83,12 @@ def process_audio(mixture, progress=gr.Progress()):
|
|
| 88 |
# Gradio processing alert
|
| 89 |
gr.Info("Processing Has Started", title="Notice")
|
| 90 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 91 |
# ---------------------------------------------------------
|
| 92 |
# 1. INITIALIZE MODELS
|
| 93 |
# ---------------------------------------------------------
|
|
|
|
| 35 |
# Name of separated file folder
|
| 36 |
sources = Path(os.getcwd()) / "sources"
|
| 37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
|
| 39 |
# Path checking for removing source directory every run
|
| 40 |
def reset_dir():
|
|
|
|
| 83 |
# Gradio processing alert
|
| 84 |
gr.Info("Processing Has Started", title="Notice")
|
| 85 |
|
| 86 |
+
# Creates mixture directory
|
| 87 |
+
Path.mkdir(mixtures, exist_ok=True)
|
| 88 |
+
|
| 89 |
+
# Creates separated directory
|
| 90 |
+
Path.mkdir(sources, exist_ok=True)
|
| 91 |
+
|
| 92 |
# ---------------------------------------------------------
|
| 93 |
# 1. INITIALIZE MODELS
|
| 94 |
# ---------------------------------------------------------
|