Spaces:
Runtime error
Runtime error
abderrahimbrighal
commited on
Commit
•
3688ecc
1
Parent(s):
d6d2ab1
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from transformers import pipeline, AutoTokenizer, AutoModelForCausalLM
|
2 |
+
|
3 |
+
# Load the text-to-speech pipeline directly with the model
|
4 |
+
pipe = pipeline("text-to-speech", model="Lwasinam/voicera")
|
5 |
+
|
6 |
+
# Load the tokenizer and model separately if needed
|
7 |
+
tokenizer = AutoTokenizer.from_pretrained("Lwasinam/voicera")
|
8 |
+
model = AutoModelForCausalLM.from_pretrained("Lwasinam/voicera")
|