Spaces:
Sleeping
Sleeping
admin
commited on
Commit
Β·
16c1e43
1
Parent(s):
7d896dc
rm login ms
Browse files
utils.py
CHANGED
|
@@ -5,10 +5,8 @@ import torch
|
|
| 5 |
import requests
|
| 6 |
import subprocess
|
| 7 |
from tqdm import tqdm
|
| 8 |
-
from modelscope.hub.api import HubApi
|
| 9 |
from modelscope import snapshot_download
|
| 10 |
|
| 11 |
-
HubApi().login(os.getenv("ms_app_key"))
|
| 12 |
TEMP_DIR = "./flagged"
|
| 13 |
WEIGHTS_DIR = snapshot_download("monetjoe/EMusicGen", cache_dir="./__pycache__")
|
| 14 |
DEVICE = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
|
|
|
| 5 |
import requests
|
| 6 |
import subprocess
|
| 7 |
from tqdm import tqdm
|
|
|
|
| 8 |
from modelscope import snapshot_download
|
| 9 |
|
|
|
|
| 10 |
TEMP_DIR = "./flagged"
|
| 11 |
WEIGHTS_DIR = snapshot_download("monetjoe/EMusicGen", cache_dir="./__pycache__")
|
| 12 |
DEVICE = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|