Brasd99 commited on
Commit
1bce0f9
1 Parent(s): f2a547a
Files changed (2) hide show
  1. app.py +8 -0
  2. config.json +2 -2
app.py CHANGED
@@ -9,6 +9,9 @@ import json
9
  with open('config.json', 'r') as f:
10
  config = json.load(f)
11
 
 
 
 
12
  LANGUAGES_URL = config['LANGUAGES_URL']
13
  OUTPUT_FILENAME = config['OUTPUT_FILENAME']
14
 
@@ -44,6 +47,11 @@ def update_progress(percent, text):
44
  iso_languages = get_iso_languages()
45
  languages = list(iso_languages.keys())
46
 
 
 
 
 
 
47
  language = st.selectbox('Select a language', languages)
48
  text = st.text_input('Enter some text')
49
  input_wav = st.file_uploader("Upload a WAV file", type=["wav"])
 
9
  with open('config.json', 'r') as f:
10
  config = json.load(f)
11
 
12
+ APP_NAME = config['APP_NAME']
13
+ APP_LOGO = config['APP_LOGO']
14
+ APP_DESCRIPTION = config['APP_DESCRIPTION']
15
  LANGUAGES_URL = config['LANGUAGES_URL']
16
  OUTPUT_FILENAME = config['OUTPUT_FILENAME']
17
 
 
47
  iso_languages = get_iso_languages()
48
  languages = list(iso_languages.keys())
49
 
50
+ st.set_page_config(page_title=APP_NAME)
51
+ st.title(APP_NAME)
52
+ st.image(APP_LOGO, use_column_width=True)
53
+ st.markdown(APP_DESCRIPTION)
54
+
55
  language = st.selectbox('Select a language', languages)
56
  text = st.text_input('Enter some text')
57
  input_wav = st.file_uploader("Upload a WAV file", type=["wav"])
config.json CHANGED
@@ -1,7 +1,7 @@
1
  {
2
  "APP_NAME": "TTS-Voice-Cloner",
3
- "APP_LOGO": "",
4
- "APP_DESCRIPTION": "The service allows you to clone a voice from a given audio recording and produce text voice acting",
5
  "LANGUAGES_URL": "https://dl.fbaipublicfiles.com/mms/tts/all-tts-languages.html",
6
  "OUTPUT_FILENAME": "output.wav"
7
  }
 
1
  {
2
  "APP_NAME": "TTS-Voice-Cloner",
3
+ "APP_LOGO": "https://raw.githubusercontent.com/coqui-ai/TTS/main/images/coqui-log-green-TTS.png",
4
+ "APP_DESCRIPTION": "Simple app that uses [Coqui TTS](https://github.com/coqui-ai/TTS) library to clone your voice!",
5
  "LANGUAGES_URL": "https://dl.fbaipublicfiles.com/mms/tts/all-tts-languages.html",
6
  "OUTPUT_FILENAME": "output.wav"
7
  }