barreloflube
commited on
Commit
•
37c429a
1
Parent(s):
e3f3bde
Refactor code to remove unused submodule import
Browse files
tabs/audios/load_models.py
CHANGED
@@ -1,6 +1,5 @@
|
|
1 |
import os
|
2 |
|
3 |
-
import spaces
|
4 |
import torch
|
5 |
from df.enhance import init_df
|
6 |
from modelscope import snapshot_download
|
@@ -8,7 +7,7 @@ from modelscope import snapshot_download
|
|
8 |
from config import Config
|
9 |
from .modules.CosyVoice.cosyvoice.cli.cosyvoice import CosyVoice
|
10 |
|
11 |
-
|
12 |
def init_sys():
|
13 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
14 |
|
|
|
1 |
import os
|
2 |
|
|
|
3 |
import torch
|
4 |
from df.enhance import init_df
|
5 |
from modelscope import snapshot_download
|
|
|
7 |
from config import Config
|
8 |
from .modules.CosyVoice.cosyvoice.cli.cosyvoice import CosyVoice
|
9 |
|
10 |
+
|
11 |
def init_sys():
|
12 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
13 |
|