Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ model = SpeechT5ForTextToSpeech.from_pretrained("microsoft/speecht5_tts")
|
|
15 |
vocoder = SpeechT5HifiGan.from_pretrained("microsoft/speecht5_hifigan")
|
16 |
|
17 |
# Load pronunciation dictionary from JSON file
|
18 |
-
with open("
|
19 |
pronunciation_dict = json.load(f)
|
20 |
|
21 |
# Function to preprocess the input text
|
|
|
15 |
vocoder = SpeechT5HifiGan.from_pretrained("microsoft/speecht5_hifigan")
|
16 |
|
17 |
# Load pronunciation dictionary from JSON file
|
18 |
+
with open("pronunciation_dict.json", "r") as f:
|
19 |
pronunciation_dict = json.load(f)
|
20 |
|
21 |
# Function to preprocess the input text
|