akash015 commited on
Commit
55151cd
·
verified ·
1 Parent(s): e2e03e1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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