Spaces:
Running
Running
admin
commited on
Commit
•
567698f
1
Parent(s):
47a09d2
rename org name
Browse files
utils.py
CHANGED
@@ -15,7 +15,7 @@ TEYVAT = {
|
|
15 |
"枫丹 Fontaine": "Fontaine",
|
16 |
}
|
17 |
WEIGHTS_PATH = (
|
18 |
-
snapshot_download("
|
19 |
+ "/weights.pth"
|
20 |
)
|
21 |
DEVICE = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
@@ -57,7 +57,7 @@ if sys.platform.startswith("linux"):
|
|
57 |
extra_dir = "squashfs-root"
|
58 |
download(
|
59 |
filename=apkname,
|
60 |
-
url="https://www.modelscope.cn/studio/
|
61 |
)
|
62 |
if not os.path.exists(extra_dir):
|
63 |
subprocess.run(["chmod", "+x", f"./{apkname}"])
|
|
|
15 |
"枫丹 Fontaine": "Fontaine",
|
16 |
}
|
17 |
WEIGHTS_PATH = (
|
18 |
+
snapshot_download("Genius-Society/hoyoMusic", cache_dir="./__pycache__")
|
19 |
+ "/weights.pth"
|
20 |
)
|
21 |
DEVICE = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
|
|
57 |
extra_dir = "squashfs-root"
|
58 |
download(
|
59 |
filename=apkname,
|
60 |
+
url="https://www.modelscope.cn/studio/Genius-Society/piano_transcription/resolve/master/MuseScore.AppImage",
|
61 |
)
|
62 |
if not os.path.exists(extra_dir):
|
63 |
subprocess.run(["chmod", "+x", f"./{apkname}"])
|