smjain commited on
Commit
3d2a1da
1 Parent(s): 416ad07

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py CHANGED
@@ -1,5 +1,13 @@
1
  import os
2
 
 
 
 
 
 
 
 
 
3
  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")
4
  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")
5
  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")
 
1
  import os
2
 
3
+
4
+ # Example command to set an environment variable (this is not effective for parent Python processes)
5
+ token=os.environ['diffus']
6
+ os.environ['HUGGINGFACE_TOKEN'] = token
7
+
8
+ # This will not make HUGGINGFACE_TOKEN accessible in the Python script outside the os.system call.
9
+
10
+
11
  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")
12
  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")
13
  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")