Chelsea / audio2text /init_model.py
CineAI's picture
Rename audio2text/__init__.py to audio2text/init_model.py
fa338dd verified
raw
history blame
466 Bytes
from transformers import WhisperProcessor, WhisperForConditionalGeneration
# 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/
# Here ArticMonkey is name of version and rest of all is data and time
checkpoint = "openai/whisper-base"
processor = WhisperProcessor.from_pretrained(checkpoint)
model = WhisperForConditionalGeneration.from_pretrained(checkpoint)