Update app.py
Browse files
app.py
CHANGED
|
@@ -41,7 +41,7 @@ try:
|
|
| 41 |
encoder_session = ort.InferenceSession("encoder_model_quantized.onnx")
|
| 42 |
decoder_session = ort.InferenceSession("decoder_model_quantized.onnx")
|
| 43 |
except Exception as e:
|
| 44 |
-
|
| 45 |
|
| 46 |
|
| 47 |
# 6. Отладка: вывод информации о моделях
|
|
|
|
| 41 |
encoder_session = ort.InferenceSession("encoder_model_quantized.onnx")
|
| 42 |
decoder_session = ort.InferenceSession("decoder_model_quantized.onnx")
|
| 43 |
except Exception as e:
|
| 44 |
+
raise RuntimeError(f"Ошибка загрузки ONNX-модели: {e}") # ЗАКРЫТА кавычка и скобка!
|
| 45 |
|
| 46 |
|
| 47 |
# 6. Отладка: вывод информации о моделях
|