Spaces:
Runtime error
Runtime error
fix model path
Browse files
main.py
CHANGED
@@ -11,11 +11,11 @@ from optimum.onnxruntime import ORTModelForSequenceClassification
|
|
11 |
from optimum.pipelines import pipeline
|
12 |
|
13 |
|
14 |
-
MODEL_PATH = "
|
15 |
|
16 |
st.set_page_config(page_title="Optimum Text Classification", page_icon="⭐")
|
17 |
st.title("🤗 Optimum Text Classification")
|
18 |
-
st.subheader("
|
19 |
st.markdown("""
|
20 |
[](https://github.com/ChainYo)
|
21 |
[](https://huggingface.co/ChainYo)
|
|
|
11 |
from optimum.pipelines import pipeline
|
12 |
|
13 |
|
14 |
+
MODEL_PATH = "cardiffnlp/twitter-roberta-base-sentiment-latest"
|
15 |
|
16 |
st.set_page_config(page_title="Optimum Text Classification", page_icon="⭐")
|
17 |
st.title("🤗 Optimum Text Classification")
|
18 |
+
st.subheader("Sentiment analysis with 🤗 Optimum and ONNXRuntime")
|
19 |
st.markdown("""
|
20 |
[](https://github.com/ChainYo)
|
21 |
[](https://huggingface.co/ChainYo)
|