Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -100,7 +100,7 @@ def _execute_conversion(pth_file, image, singer_name, description, voice_type, a
|
|
| 100 |
)
|
| 101 |
|
| 102 |
use_fp16 = False
|
| 103 |
-
output_onnx_simple_path = export2onnx(
|
| 104 |
|
| 105 |
if not os.path.exists(output_onnx_simple_path):
|
| 106 |
raise RuntimeError("Failed to convert the model to ONNX. The output file was not created.")
|
|
|
|
| 100 |
)
|
| 101 |
|
| 102 |
use_fp16 = False
|
| 103 |
+
output_onnx_simple_path = export2onnx(-1, model_slot, input_pth_path, use_fp16)
|
| 104 |
|
| 105 |
if not os.path.exists(output_onnx_simple_path):
|
| 106 |
raise RuntimeError("Failed to convert the model to ONNX. The output file was not created.")
|