Gregniuki commited on
Commit
4f0eb11
·
1 Parent(s): fb218f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -135,12 +135,12 @@ async def main(
135
  onnx_model = onnx_models
136
  model, config = load_onnx(onnx_model, sess_options, providers)
137
  print("nuber of speakers = ", config["num_speakers"])
138
- print("hello2")
139
- rate = speed_slider.value
140
- noise_scale = noise_scale_slider.value
141
- noise_scale_w = noise_scale_w_slider.value
142
  auto_play = play.value
143
- audio = inferencing(model, config, sid, text_input.value, speed_slider.value, noise_scale_slider.value, noise_scale_w_slider, auto_play)
144
  temp_audio_file = tempfile.NamedTemporaryFile(delete=False, suffix=".mp3")
145
  audio.export(temp_audio_file.name, format="mp3")
146
 
 
135
  onnx_model = onnx_models
136
  model, config = load_onnx(onnx_model, sess_options, providers)
137
  print("nuber of speakers = ", config["num_speakers"])
138
+ print("speaker", speaker)
139
+ # rate = speed_slider.value
140
+ # noise_scale = noise_scale_slider.value
141
+ # noise_scale_w = noise_scale_w_slider.value
142
  auto_play = play.value
143
+ audio = inferencing(model, config, sid, text_input.value, speed_slider, noise_scale_slider, noise_scale_w_slider, auto_play)
144
  temp_audio_file = tempfile.NamedTemporaryFile(delete=False, suffix=".mp3")
145
  audio.export(temp_audio_file.name, format="mp3")
146