CineAI commited on
Commit
7722c06
1 Parent(s): 4724979

41727469634d6f6e6b65793a32302e30332e32343a31383236

Browse files
Files changed (1) hide show
  1. audio2text/init.py +8 -0
audio2text/init.py CHANGED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ from transformers import WhisperProcessor, WhisperForConditionalGeneration
2
+
3
+ # ArticMonkey:19.03.24:1700 example of version name in plaintext will be convert into hex using this site -> https://magictool.ai/tool/text-to-hex-converter/
4
+ # Here ArticMonkey is name of version and rest of all is data and time
5
+
6
+ checkpoint = "openai/whisper-base"
7
+ processor = WhisperProcessor.from_pretrained(checkpoint)
8
+ model = WhisperForConditionalGeneration.from_pretrained(checkpoint)