test_speech / app.py
abderrahimbrighal's picture
Create app.py
3688ecc verified
raw
history blame contribute delete
371 Bytes
from transformers import pipeline, AutoTokenizer, AutoModelForCausalLM
# Load the text-to-speech pipeline directly with the model
pipe = pipeline("text-to-speech", model="Lwasinam/voicera")
# Load the tokenizer and model separately if needed
tokenizer = AutoTokenizer.from_pretrained("Lwasinam/voicera")
model = AutoModelForCausalLM.from_pretrained("Lwasinam/voicera")