Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification, pipeline
|
| 3 |
|
| 4 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
| 5 |
-
model = AutoModelForSequenceClassification.from_pretrained("
|
| 6 |
|
| 7 |
# Create a sentiment analysis pipeline with the explicit tokenizer
|
| 8 |
classifier = pipeline("text-classification", model=model,tokenizer=tokenizer)
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification, pipeline
|
| 3 |
|
| 4 |
+
tokenizer = AutoTokenizer.from_pretrained("Nma/RuleClassify-Textclassify")
|
| 5 |
+
model = AutoModelForSequenceClassification.from_pretrained("Nma/RuleClassify-Textclassify")
|
| 6 |
|
| 7 |
# Create a sentiment analysis pipeline with the explicit tokenizer
|
| 8 |
classifier = pipeline("text-classification", model=model,tokenizer=tokenizer)
|