Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,8 @@ from encodec.utils import convert_audio
|
|
14 |
hubert_model = CustomHubert(checkpoint_path='hubert.pt')
|
15 |
model = EncodecModel.encodec_model_24khz()
|
16 |
model.set_target_bandwidth(6.0)
|
17 |
-
|
|
|
18 |
|
19 |
def process_audio(in_file):
|
20 |
wav, sr = torchaudio.load(in_file.name)
|
|
|
14 |
hubert_model = CustomHubert(checkpoint_path='hubert.pt')
|
15 |
model = EncodecModel.encodec_model_24khz()
|
16 |
model.set_target_bandwidth(6.0)
|
17 |
+
tokenizer = CustomTokenizer.load_from_checkpoint('polish-HuBERT-quantizer_8_epoch.pth', map_location=torch.device('cpu'))
|
18 |
+
|
19 |
|
20 |
def process_audio(in_file):
|
21 |
wav, sr = torchaudio.load(in_file.name)
|