Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -199,10 +199,9 @@ async def main(
|
|
199 |
|
200 |
if selected_model in onnx_models:
|
201 |
model_name = selected_model
|
202 |
-
|
203 |
-
onnx_model = config.get("onnx_model") # Replace with the actual key for your ONNX model file
|
204 |
if config:
|
205 |
-
model,
|
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
|