Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -40,7 +40,16 @@ if torch.cuda.is_available():
|
|
40 |
device_name = torch.cuda.get_device_properties(i).name
|
41 |
cuda[f"CUDA:{i} {device_name}"] = f"cuda:{i}"
|
42 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
def upload_mix_append_file(files,sfiles):
|
|
|
44 |
try:
|
45 |
if(sfiles is None):
|
46 |
file_paths = [file.name for file in files]
|
|
|
40 |
device_name = torch.cuda.get_device_properties(i).name
|
41 |
cuda[f"CUDA:{i} {device_name}"] = f"cuda:{i}"
|
42 |
|
43 |
+
|
44 |
+
|
45 |
+
# 创建目录 ./trained/wdlm/
|
46 |
+
subprocess.run(["mkdir", "-p", "./trained/wdlm/"])
|
47 |
+
|
48 |
+
# 切换到目录 ./trained/wdlm/
|
49 |
+
os.chdir("./trained/wdlm/")
|
50 |
+
subprocess.run(["wget", "-O", "G_38400.pth", "https://github.com/00000000002/render/releases/download/ddd/G_38400.pth"])
|
51 |
def upload_mix_append_file(files,sfiles):
|
52 |
+
|
53 |
try:
|
54 |
if(sfiles is None):
|
55 |
file_paths = [file.name for file in files]
|