Task2 / app.py
Orawan's picture
Update app.py
6b80aca
raw
history blame contribute delete
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('กรุณาถอดรองเท้า')