Blakus commited on
Commit
876f800
·
verified ·
1 Parent(s): f43fe94

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -13
app.py CHANGED
@@ -254,11 +254,7 @@ class PedroTTSApp:
254
  ⏱️ Tiempo de procesamiento: {inference_time:.1f}s
255
  🔧 Configuración aplicada:
256
  • Temperatura: {temperature}
257
- Length Penalty: {length_penalty}
258
- • Repetition Penalty: {repetition_penalty:.2f}
259
- • Top-K: {int(top_k)}, Top-P: {top_p}
260
- • División por oraciones: {'Sí' if enable_text_splitting else 'No'}
261
- • Sampling: Activado"""
262
 
263
  return output_path, metrics
264
 
@@ -324,8 +320,8 @@ def create_interface():
324
  text-align: center;
325
  }
326
  .speaker-image {
327
- width: 120px;
328
- height: 120px;
329
  border-radius: 50%;
330
  margin: 0 auto 15px;
331
  border: 4px solid rgba(255,255,255,0.3);
@@ -466,22 +462,22 @@ def create_interface():
466
  label="🎭 Estilo de voz"
467
  )
468
 
 
469
  speed = gr.Slider(
470
  0.5, 2.0, 1.0, 0.1,
471
- label="⚡ Velocidad",
472
- info="Velocidad de reproducción del audio"
473
  )
474
 
 
475
  temperature = gr.Slider(
476
  0.1, 1.5, 0.75, 0.05,
477
- label="🎨 Creatividad",
478
- info="🛡️ Más estable pero menos creativo/expresivo ← → 🎭 Menos estable pero más creativo/expresivo"
479
  )
480
 
 
481
  enable_text_splitting = gr.Checkbox(
482
  value=True,
483
- label="📖 Segmentación inteligente",
484
- info="✅ Puede generar mejor coherencia con textos largos | ⚠️ A costa de estabilidad o pequeños errores"
485
  )
486
 
487
  text_input = gr.Textbox(
 
254
  ⏱️ Tiempo de procesamiento: {inference_time:.1f}s
255
  🔧 Configuración aplicada:
256
  • Temperatura: {temperature}
257
+ Segmentación: {'Activada' if enable_text_splitting else 'Desactivada'}"""
 
 
 
 
258
 
259
  return output_path, metrics
260
 
 
320
  text-align: center;
321
  }
322
  .speaker-image {
323
+ width: 180px;
324
+ height: 180px;
325
  border-radius: 50%;
326
  margin: 0 auto 15px;
327
  border: 4px solid rgba(255,255,255,0.3);
 
462
  label="🎭 Estilo de voz"
463
  )
464
 
465
+ gr.Markdown("**Velocidad de reproducción del audio**")
466
  speed = gr.Slider(
467
  0.5, 2.0, 1.0, 0.1,
468
+ label="⚡ Velocidad"
 
469
  )
470
 
471
+ gr.Markdown("**🛡️ Más estable pero menos creativo/expresivo ← → 🎭 Menos estable pero más creativo/expresivo**")
472
  temperature = gr.Slider(
473
  0.1, 1.5, 0.75, 0.05,
474
+ label="🎨 Creatividad"
 
475
  )
476
 
477
+ gr.Markdown("**✅ Puede generar mejor coherencia con textos largos | ⚠️ A costa de estabilidad o pequeños errores**")
478
  enable_text_splitting = gr.Checkbox(
479
  value=True,
480
+ label="📖 Segmentación inteligente"
 
481
  )
482
 
483
  text_input = gr.Textbox(