Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ from tts import synthesize_speech
|
|
3 |
|
4 |
def main():
|
5 |
tts_interface = gr.Interface(
|
6 |
-
fn=synthesize_speech,
|
7 |
inputs="text",
|
8 |
outputs="audio",
|
9 |
title="Faroese TTS Demo",
|
|
|
3 |
|
4 |
def main():
|
5 |
tts_interface = gr.Interface(
|
6 |
+
fn=lambda text: synthesize_speech(f"[fao] {text}"), # Explicitly set language code if needed
|
7 |
inputs="text",
|
8 |
outputs="audio",
|
9 |
title="Faroese TTS Demo",
|