File size: 488 Bytes
78714c6 f2e6b5a 78714c6 7722c06 78714c6 7722c06 78714c6 33273c7 78714c6 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
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-medium"
pipe = pipeline(
"automatic-speech-recognition",
model=checkpoint,
device=device,
chunk_length_s=30,
) |