totetecdev commited on
Commit
e1cd4e7
1 Parent(s): 49c560b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +5 -1
README.md CHANGED
@@ -1,3 +1,5 @@
 
 
1
  from peft import PeftModel, PeftConfig
2
  from transformers import WhisperForConditionalGeneration, WhisperProcessor, pipeline
3
 
@@ -24,4 +26,6 @@ model.config.use_cache = True
24
  processor = WhisperProcessor.from_pretrained(peft_config.base_model_name_or_path)
25
 
26
  # Pipeline'ı oluşturun
27
- pipe = pipeline("automatic-speech-recognition", model=model, tokenizer=processor.tokenizer, feature_extractor=processor.feature_extractor)
 
 
 
1
+ ```
2
+
3
  from peft import PeftModel, PeftConfig
4
  from transformers import WhisperForConditionalGeneration, WhisperProcessor, pipeline
5
 
 
26
  processor = WhisperProcessor.from_pretrained(peft_config.base_model_name_or_path)
27
 
28
  # Pipeline'ı oluşturun
29
+ pipe = pipeline("automatic-speech-recognition", model=model, tokenizer=processor.tokenizer, feature_extractor=processor.feature_extractor)
30
+
31
+ ```