Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -156,13 +156,13 @@ async def main(
|
|
156 |
# )
|
157 |
# config = None
|
158 |
# def load_model(button):
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
# if enhanced_accessibility:
|
167 |
# playaudio("loaded")
|
168 |
# if config["num_speakers"] > 1:
|
|
|
156 |
# )
|
157 |
# config = None
|
158 |
# def load_model(button):
|
159 |
+
# nonlocal config
|
160 |
+
# global onnx_model
|
161 |
+
# nonlocal model
|
162 |
+
# nonlocal models_path
|
163 |
+
# selected_voice = selection.value
|
164 |
+
# onnx_model = f"{models_path}/{selected_voice}"
|
165 |
+
# model, config = load_onnx(onnx_model, sess_options, providers)
|
166 |
# if enhanced_accessibility:
|
167 |
# playaudio("loaded")
|
168 |
# if config["num_speakers"] > 1:
|