tonyshark commited on
Commit
04fa709
·
verified ·
1 Parent(s): 8f22255

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -8
app.py CHANGED
@@ -271,6 +271,7 @@ with gr.Blocks(title="StyleTTS2 Text-to-Speech", theme=gr.themes.Soft()) as demo
271
  label="🌍 Môi trường âm thanh",
272
  info="Chọn môi trường để áp dụng hiệu ứng"
273
  )
 
274
  speed_slider = gr.Slider(
275
  minimum=0.5,
276
  maximum=2.0,
@@ -279,14 +280,14 @@ with gr.Blocks(title="StyleTTS2 Text-to-Speech", theme=gr.themes.Soft()) as demo
279
  label="⚡ Tốc độ nói",
280
  info="1.0 = bình thường, < 1.0 = chậm, > 1.0 = nhanh"
281
  )
282
-
283
- snr_slider = gr.Slider(
284
- 0, 30,
285
- value=10,
286
- step=1,
287
- label="🔊 Mức độ nhiễu (SNR dB)",
288
- info="Chỉ áp dụng cho môi trường có tiếng ồn. Cao hơn = ít nhiễu hơn"
289
- )
290
 
291
  btn = gr.Button("🎵 Tạo giọng nói", variant="primary", size="lg")
292
 
 
271
  label="🌍 Môi trường âm thanh",
272
  info="Chọn môi trường để áp dụng hiệu ứng"
273
  )
274
+ with gr.Row():
275
  speed_slider = gr.Slider(
276
  minimum=0.5,
277
  maximum=2.0,
 
280
  label="⚡ Tốc độ nói",
281
  info="1.0 = bình thường, < 1.0 = chậm, > 1.0 = nhanh"
282
  )
283
+ with gr.Row():
284
+ snr_slider = gr.Slider(
285
+ 0, 30,
286
+ value=10,
287
+ step=1,
288
+ label="🔊 Mức độ nhiễu (SNR dB)",
289
+ info="Chỉ áp dụng cho môi trường có tiếng ồn. Cao hơn = ít nhiễu hơn"
290
+ )
291
 
292
  btn = gr.Button("🎵 Tạo giọng nói", variant="primary", size="lg")
293