SA_test / app.py
Hamza3107's picture
Update app.py
8c28dd0 verified
raw
history blame
337 Bytes
print("first test for hugging face")
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("Remicm/sentiment-analysis-model-for-socialmedia")
model = AutoModelForSequenceClassification.from_pretrained("Remicm/sentiment-analysis-model-for-socialmedia")