jhonparra18 commited on
Commit
cee1344
1 Parent(s): efd1206

header update

Browse files
Files changed (2) hide show
  1. app.py +3 -2
  2. inference.py +1 -2
app.py CHANGED
@@ -4,10 +4,11 @@ from inference import text_to_speech
4
 
5
 
6
  with gr.Blocks() as demo:
7
- gr.Markdown("Text-to-Speech Gustavo Petro")
 
8
 
9
  with gr.Row():
10
- text_input = gr.Textbox(label="Input Text",value="Hola soy Gustavo Petro y esta es mi voz de prueba",lines=2, placeholder="Hola soy Gustavo Petro y esta es mi voz de prueba")
11
 
12
  text_button = gr.Button("Generate")
13
 
 
4
 
5
 
6
  with gr.Blocks() as demo:
7
+ gr.Markdown("""# Text-to-Speech Gustavo Petro
8
+ Fine-tuned [VITS](https://github.com/statscol/tts-ai-public-figure)""")
9
 
10
  with gr.Row():
11
+ text_input = gr.Textbox(label="Input Text",value="Hola soy Gustavo Petro y esta es mi voz de prueba",lines=1, placeholder="Hola soy Gustavo Petro y esta es mi voz de prueba")
12
 
13
  text_button = gr.Button("Generate")
14
 
inference.py CHANGED
@@ -5,9 +5,8 @@ import gdown
5
  import os
6
 
7
  cur_path=os.getcwd()
8
-
9
  ## download weights and config file
10
- file_id = '1-uVNiBjN9d6GBZy3jubvgq7slyEgObyr'
11
  url = f'https://drive.google.com/uc?id='
12
  output = f'{cur_path}/best_model.pth'
13
  gdown.download(f"{url}{file_id}", output, quiet=False)
 
5
  import os
6
 
7
  cur_path=os.getcwd()
 
8
  ## download weights and config file
9
+ file_id = '1-JWDCqKe4KTMoL-VibtiKDX6FP1xSLy2'
10
  url = f'https://drive.google.com/uc?id='
11
  output = f'{cur_path}/best_model.pth'
12
  gdown.download(f"{url}{file_id}", output, quiet=False)