Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -225,7 +225,7 @@ async def main(
|
|
225 |
noise_scale_slider: float = Form(...),
|
226 |
noise_scale_w_slider: float = Form(...),
|
227 |
play: bool = Form(True),
|
228 |
-
|
229 |
):
|
230 |
# ... (previous code)
|
231 |
|
@@ -242,7 +242,7 @@ async def main(
|
|
242 |
sess_options = onnxruntime.SessionOptions()
|
243 |
model, config = load_onnx(selected_model, sess_options, providers)
|
244 |
config["espeak"]["voice"] = speaker
|
245 |
-
|
246 |
|
247 |
auto_play = play
|
248 |
audio = inferencing(model, config, selected_speaker_id, text_input, speed_slider, noise_scale_slider, noise_scale_w_slider, auto_play)
|
|
|
225 |
noise_scale_slider: float = Form(...),
|
226 |
noise_scale_w_slider: float = Form(...),
|
227 |
play: bool = Form(True),
|
228 |
+
# initial_values: Tuple[str, str] = Depends(get_initial_values) # Use the dependency here
|
229 |
):
|
230 |
# ... (previous code)
|
231 |
|
|
|
242 |
sess_options = onnxruntime.SessionOptions()
|
243 |
model, config = load_onnx(selected_model, sess_options, providers)
|
244 |
config["espeak"]["voice"] = speaker
|
245 |
+
# speaker_id_map = config.get("speaker_id_map", {})
|
246 |
|
247 |
auto_play = play
|
248 |
audio = inferencing(model, config, selected_speaker_id, text_input, speed_slider, noise_scale_slider, noise_scale_w_slider, auto_play)
|