Spaces:
Runtime error
Runtime error
File size: 371 Bytes
3688ecc |
1 2 3 4 5 6 7 8 9 |
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")
|