smjain commited on
Commit
33be5fd
1 Parent(s): 4e34ab1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -13,6 +13,8 @@ subprocess.run(["huggingface-cli", "login", "--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
 
@@ -20,6 +22,8 @@ os.system("aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://hugging
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
 
 
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
+ command1 = f"curl -L -H 'Authorization: Bearer {token}' 'https://huggingface.co/spaces/smjain/Advanced-RVC-Inference/resolve/main/modi.pth' -o ./weights/modi.pth"
17
+ command2 = f"curl -L -H 'Authorization: Bearer {token}' 'https://huggingface.co/spaces/smjain/Advanced-RVC-Inference/resolve/main/khujli.pth' -o ./weights/khujli.pth"
18
 
19
 
20
 
 
22
  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")
23
  #os.system("curl -L -H 'Authorization: Bearer token' "https://huggingface.co/spaces/smjain/Advanced-RVC-Inference/resolve/main/trips.pth" -o ./weights/trips.pth")
24
  os.system(command)
25
+ os.system(command1)
26
+ os.system(command2)
27
  #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")
28
  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")
29