Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -65,11 +65,11 @@ class OnnxModelConverter:
|
|
65 |
"""
|
66 |
model = VitsModel.from_pretrained(model_name, token=token)
|
67 |
onnx_file = f"/tmp/{onnx_filename}.onnx"
|
68 |
-
|
69 |
-
|
70 |
|
71 |
torch.onnx.export(
|
72 |
-
model,
|
73 |
example_input,
|
74 |
onnx_file,
|
75 |
opset_version=11,
|
|
|
65 |
"""
|
66 |
model = VitsModel.from_pretrained(model_name, token=token)
|
67 |
onnx_file = f"/tmp/{onnx_filename}.onnx"
|
68 |
+
example_input = torch.randn(1, 192, 10)
|
69 |
+
|
70 |
|
71 |
torch.onnx.export(
|
72 |
+
model.decoder,
|
73 |
example_input,
|
74 |
onnx_file,
|
75 |
opset_version=11,
|