smjain commited on
Commit
54dfc90
1 Parent(s): 40658aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -12,12 +12,14 @@ subprocess.run(["huggingface-cli", "login", "--token", token])
12
  #os.environ['HUGGINGFACE_TOKEN'] = token
13
 
14
  # This will not make HUGGINGFACE_TOKEN accessible in the Python script outside the os.system call.
 
 
15
 
16
 
17
  os.system("aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/hubert_base.pt -d . -o hubert_base.pt")
18
  os.system("aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/rmvpe.pt -d . -o rmvpe.pt")
19
- os.system("curl -L -H 'Authorization: Bearer token' "https://huggingface.co/spaces/smjain/Advanced-RVC-Inference/resolve/main/trips.pth" -o ./weights/trips.pth")
20
-
21
  #os.system("aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/spaces/smjain/Advanced-RVC-Inference/resolve/main/trips.pth -d ./weights -o trips.pth")
22
  os.system("aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/sail-rvc/yoimiya-jp/resolve/main/model.index -d ./weights/index -o yoimiya.index")
23
 
 
12
  #os.environ['HUGGINGFACE_TOKEN'] = token
13
 
14
  # This will not make HUGGINGFACE_TOKEN accessible in the Python script outside the os.system call.
15
+ command = f"curl -L -H 'Authorization: Bearer {token}' 'https://huggingface.co/spaces/smjain/Advanced-RVC-Inference/resolve/main/trips.pth' -o ./weights/trips.pth"
16
+
17
 
18
 
19
  os.system("aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/hubert_base.pt -d . -o hubert_base.pt")
20
  os.system("aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/rmvpe.pt -d . -o rmvpe.pt")
21
+ #os.system("curl -L -H 'Authorization: Bearer token' "https://huggingface.co/spaces/smjain/Advanced-RVC-Inference/resolve/main/trips.pth" -o ./weights/trips.pth")
22
+ os.system(command)
23
  #os.system("aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/spaces/smjain/Advanced-RVC-Inference/resolve/main/trips.pth -d ./weights -o trips.pth")
24
  os.system("aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/sail-rvc/yoimiya-jp/resolve/main/model.index -d ./weights/index -o yoimiya.index")
25