from transformers import AutoTokenizer, AutoModelForSequenceClassification
from transformers import pipeline

loaded_tokenizer = AutoTokenizer.from_pretrained('Safouene/Flaubert_Courriel')
loaded_model = AutoModelForSequenceClassification.from_pretrained("Safouene/Flaubert_Courriel")

nlp = pipeline('sentiment-analysis', model=loaded_model, tokenizer=loaded_tokenizer)

print(nlp("Je suis plutôt confiant."))
{"language": ["fr"], "license": "apache-2.0", "library_name": "transformers", "metrics": ["accuracy"], "pipeline_tag": "text-classification"}
transformers flaubert text-classification fr license:apache-2.0 autotrain_compatible endpoints_compatible region:us