Spaces:
Runtime error
Runtime error
Abineshkumar77
commited on
Commit
·
b880de6
1
Parent(s):
223eaa6
Add application file
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ import torch
|
|
| 6 |
|
| 7 |
# Load the tokenizer and ONNX model directly
|
| 8 |
tokenizer = AutoTokenizer.from_pretrained("minhdang/model_onnx")
|
| 9 |
-
model = ORTModelForSequenceClassification.from_pretrained("
|
| 10 |
|
| 11 |
app = FastAPI()
|
| 12 |
|
|
|
|
| 6 |
|
| 7 |
# Load the tokenizer and ONNX model directly
|
| 8 |
tokenizer = AutoTokenizer.from_pretrained("minhdang/model_onnx")
|
| 9 |
+
model = ORTModelForSequenceClassification.from_pretrained("minhdang/model_onnx", file_name="model_quantized.onnx")
|
| 10 |
|
| 11 |
app = FastAPI()
|
| 12 |
|