Hobis commited on
Commit
001ec5c
·
1 Parent(s): b80ddf0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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
- tokenizer_model = CustomTokenizer.load_from_checkpoint('polish-HuBERT-quantizer_8_epoch.pth', map_location=torch.device('cpu'))
 
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)