Chelsea / audio2text /init.py
CineAI's picture
Update audio2text/init.py
dce4a52 verified
raw
history blame
462 Bytes
import torch
from transformers import pipeline
# 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
device = 0 if torch.cuda.is_available() else "cpu"
checkpoint = "openai/whisper-base"
pipe = pipeline(
"automatic-speech-recognition",
model=checkpoint,
device=device,
)