Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,9 +1,10 @@
|
|
| 1 |
import os
|
| 2 |
-
from TTS.api import TTS
|
| 3 |
import gradio as gr
|
| 4 |
from googletrans import Translator, LANGUAGES
|
|
|
|
| 5 |
|
| 6 |
# Set environment variable to automatically accept the license terms
|
|
|
|
| 7 |
os.environ["COQUI_TTS_NO_TERMS"] = "true"
|
| 8 |
|
| 9 |
# Load the TTS model once
|
|
|
|
| 1 |
import os
|
|
|
|
| 2 |
import gradio as gr
|
| 3 |
from googletrans import Translator, LANGUAGES
|
| 4 |
+
from TTS.api import TTS
|
| 5 |
|
| 6 |
# Set environment variable to automatically accept the license terms
|
| 7 |
+
os.environ["TTS_API_KEY"] = "true"
|
| 8 |
os.environ["COQUI_TTS_NO_TERMS"] = "true"
|
| 9 |
|
| 10 |
# Load the TTS model once
|