Spaces:
Runtime error
Runtime error
Commit
•
dfc0937
1
Parent(s):
013c0c1
Update app.py
Browse files
app.py
CHANGED
@@ -7,9 +7,8 @@ import numpy as np
|
|
7 |
import wave
|
8 |
from datasets import load_dataset, Audio, config
|
9 |
from IPython.display import Audio
|
10 |
-
|
11 |
# Load the TTS model from the Hugging Face Hub
|
12 |
-
checkpoint = "Abdullah-Habib/
|
13 |
processor = SpeechT5Processor.from_pretrained(checkpoint)
|
14 |
model = SpeechT5ForTextToSpeech.from_pretrained(checkpoint)
|
15 |
tokenizer = processor.tokenizer
|
|
|
7 |
import wave
|
8 |
from datasets import load_dataset, Audio, config
|
9 |
from IPython.display import Audio
|
|
|
10 |
# Load the TTS model from the Hugging Face Hub
|
11 |
+
checkpoint = "Abdullah-Habib/urdu_speech_tt" # Replace with your actual model name
|
12 |
processor = SpeechT5Processor.from_pretrained(checkpoint)
|
13 |
model = SpeechT5ForTextToSpeech.from_pretrained(checkpoint)
|
14 |
tokenizer = processor.tokenizer
|