Text_Classify / app.py
Orawan's picture
Rename app (1).py to app.py
4da23f4
raw
history blame
491 Bytes
# 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('กรุณาถอดรองเท้า')