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