Gregniuki commited on
Commit
cecdc76
·
1 Parent(s): c3f2cc3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -199,10 +199,9 @@ async def main(
199
 
200
  if selected_model in onnx_models:
201
  model_name = selected_model
202
- config = load_model_configuration(model_name)
203
- onnx_model = config.get("onnx_model") # Replace with the actual key for your ONNX model file
204
  if config:
205
- model, _ = load_onnx(onnx_model, sess_options, providers)
206
  speaker_id_map = config.get("speaker_id_map", {})
207
 
208
  auto_play = play
 
199
 
200
  if selected_model in onnx_models:
201
  model_name = selected_model
202
+ onnx_model = selected_model # Replace with the actual key for your ONNX model file
 
203
  if config:
204
+ model, config = load_onnx(onnx_model, sess_options, providers)
205
  speaker_id_map = config.get("speaker_id_map", {})
206
 
207
  auto_play = play