admin commited on
Commit
8a6d39f
β€’
1 Parent(s): 514c5c8

rm login ms

Browse files
Files changed (1) hide show
  1. utils.py +0 -2
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")