AntonioMS commited on
Commit
9cc12c0
1 Parent(s): 9acdcb9

Cambio app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -3
app.py CHANGED
@@ -30,10 +30,16 @@ def tts(text: str,
30
  model_path = "sabela.pth"
31
 
32
  model_path = os.path.join(os.getcwd(), model_file)
33
-
34
  vocoder_path = None
35
  vocoder_config_path = None
36
 
 
 
 
 
 
 
37
  synthesizer = Synthesizer(
38
  model_path, config_path, None, vocoder_path, vocoder_config_path,
39
  )
@@ -71,14 +77,15 @@ with gr.Blocks(analytics_enabled=False) as demo:
71
  )
72
  with gr.Row():
73
  input_text = gr.Textbox(
74
- label="Texto de entrada",
75
  value="Probando unha frase nova.",
76
  )
77
  with gr.Row():
78
  model_select = gr.Dropdown(
79
  label="Escolle un modelo:",
80
  choices=MODEL_NAMES,
81
- value="Celtia"
 
82
  )
83
  with gr.Row():
84
  tts_button = gr.Button("Enviar", elem_id="send-btn", visible=True)
 
30
  model_path = "sabela.pth"
31
 
32
  model_path = os.path.join(os.getcwd(), model_file)
33
+
34
  vocoder_path = None
35
  vocoder_config_path = None
36
 
37
+ print(f"Using model: {model_path}"
38
+ f"Using config: {config_path}"
39
+ f"Using vocoder: {vocoder_path}"
40
+ f"Using vocoder config: {vocoder_config_path}"
41
+ )
42
+
43
  synthesizer = Synthesizer(
44
  model_path, config_path, None, vocoder_path, vocoder_config_path,
45
  )
 
77
  )
78
  with gr.Row():
79
  input_text = gr.Textbox(
80
+ label="Texto de entrada:",
81
  value="Probando unha frase nova.",
82
  )
83
  with gr.Row():
84
  model_select = gr.Dropdown(
85
  label="Escolle un modelo:",
86
  choices=MODEL_NAMES,
87
+ value=MODEL_NAMES[0],
88
+ interactive=True
89
  )
90
  with gr.Row():
91
  tts_button = gr.Button("Enviar", elem_id="send-btn", visible=True)