Spaces:
Runtime error
Runtime error
Ahsen Khaliq
commited on
Commit
·
a803368
1
Parent(s):
2537b72
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
import os
|
2 |
os.system("git clone https://github.com/v-iashin/SpecVQGAN")
|
3 |
-
os.system("pip install pytorch-lightning==1.2.10 omegaconf==2.0.6 streamlit==0.80 matplotlib==3.4.1 albumentations==0.5.2 SoundFile torch torchvision librosa")
|
4 |
|
5 |
from pathlib import Path
|
6 |
import soundfile
|
@@ -20,6 +20,7 @@ from torch.utils.data.dataloader import default_collate
|
|
20 |
os.chdir("SpecVQGAN")
|
21 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
22 |
|
|
|
23 |
|
24 |
model_name = '2021-05-19T22-16-54_vggsound_codebook'
|
25 |
log_dir = './logs'
|
|
|
1 |
import os
|
2 |
os.system("git clone https://github.com/v-iashin/SpecVQGAN")
|
3 |
+
os.system("pip install pytorch-lightning==1.2.10 omegaconf==2.0.6 streamlit==0.80 matplotlib==3.4.1 albumentations==0.5.2 SoundFile torch torchvision librosa gdown")
|
4 |
|
5 |
from pathlib import Path
|
6 |
import soundfile
|
|
|
20 |
os.chdir("SpecVQGAN")
|
21 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
22 |
|
23 |
+
os.system("gdown https://drive.google.com/uc?id=1KGof44Sx4yIn4Hohpp9-VVTh2zGucKeY")
|
24 |
|
25 |
model_name = '2021-05-19T22-16-54_vggsound_codebook'
|
26 |
log_dir = './logs'
|