Spaces:
Running on Zero
Running on Zero
Sync from Jahmori-R/PureVoiceAI-HG via hub-sync
Browse files
app.py
CHANGED
|
@@ -23,6 +23,10 @@ torch.backends.cudnn.allow_tf32 = False
|
|
| 23 |
# Loading token from .env
|
| 24 |
load_dotenv()
|
| 25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
# Path checking for removing source directory every run
|
| 27 |
def reset_dir():
|
| 28 |
# Getting current source directory
|
|
@@ -69,9 +73,6 @@ def process_audio(mixture, progress=gr.Progress()):
|
|
| 69 |
# GPU processing availability check
|
| 70 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 71 |
|
| 72 |
-
# Hugging Face authentication token grab
|
| 73 |
-
token = os.environ.get("HF_TOKEN")
|
| 74 |
-
|
| 75 |
# Name of separated file folder
|
| 76 |
sources = Path(os.getcwd()) / "sources"
|
| 77 |
|
|
|
|
| 23 |
# Loading token from .env
|
| 24 |
load_dotenv()
|
| 25 |
|
| 26 |
+
# Hugging Face authentication token grab
|
| 27 |
+
token = os.getenv("HF_TOKEN")
|
| 28 |
+
|
| 29 |
+
|
| 30 |
# Path checking for removing source directory every run
|
| 31 |
def reset_dir():
|
| 32 |
# Getting current source directory
|
|
|
|
| 73 |
# GPU processing availability check
|
| 74 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 75 |
|
|
|
|
|
|
|
|
|
|
| 76 |
# Name of separated file folder
|
| 77 |
sources = Path(os.getcwd()) / "sources"
|
| 78 |
|