DuyTa commited on
Commit
5f80484
1 Parent(s): a9c93ba

Update realtime_Lora.py

Browse files
Files changed (1) hide show
  1. realtime_Lora.py +2 -1
realtime_Lora.py CHANGED
@@ -48,9 +48,10 @@ def main():
48
  model = PeftModel.from_pretrained(model, peft_model_id)
49
 
50
  model.to("cuda:0")
 
51
  pipe = AutomaticSpeechRecognitionPipeline(model=model, tokenizer=processor.tokenizer, feature_extractor=processor.feature_extractor, batch_size=8, torch_dtype=torch.float32, device="cuda:0")
52
 
53
- processor = WhisperProcessor.from_pretrained(peft_config.base_model_name_or_path, language=language, task=task)
54
 
55
 
56
  record_timeout = default_record_timeout
 
48
  model = PeftModel.from_pretrained(model, peft_model_id)
49
 
50
  model.to("cuda:0")
51
+ processor = WhisperProcessor.from_pretrained(peft_config.base_model_name_or_path, language=language, task=task)
52
  pipe = AutomaticSpeechRecognitionPipeline(model=model, tokenizer=processor.tokenizer, feature_extractor=processor.feature_extractor, batch_size=8, torch_dtype=torch.float32, device="cuda:0")
53
 
54
+
55
 
56
 
57
  record_timeout = default_record_timeout