Spaces:
Runtime error
Runtime error
fix ort pipeline
Browse files
main.py
CHANGED
@@ -28,7 +28,7 @@ if "tokenizer" not in st.session_state:
|
|
28 |
st.session_state["tokenizer"] = tokenizer
|
29 |
|
30 |
if "ort_model" not in st.session_state:
|
31 |
-
ort_model =
|
32 |
st.session_state["ort_model"] = ort_model
|
33 |
|
34 |
if "pt_model" not in st.session_state:
|
|
|
28 |
st.session_state["tokenizer"] = tokenizer
|
29 |
|
30 |
if "ort_model" not in st.session_state:
|
31 |
+
ort_model = ORTModelForSequenceClassification.from_pretrained(MODEL_PATH, from_transformers=True)
|
32 |
st.session_state["ort_model"] = ort_model
|
33 |
|
34 |
if "pt_model" not in st.session_state:
|