File size: 491 Bytes
dcb9dbe
 
36f9238
6b80aca
 
dcb9dbe
 
36f9238
dcb9dbe
 
 
1
2
3
4
5
6
7
8
9
10
11
12
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification

tokenizer = AutoTokenizer.from_pretrained("OatNapat/finetuned_yelp")
model = AutoModelForSequenceClassification.from_pretrained("OatNapat/finetuned_yelp")
# Use a pipeline as a high-level helper
from transformers import pipeline

nlp = pipeline("text-classification", model="zfox/finetuning-sentiment-model-3000-samples")

text = st.text_input('กรุณาถอดรองเท้า')