Ryan Kim
adding basic code for hugging face
ca4ab65
raw
history blame
257 Bytes
from transformers import pipeline
classifier = pipeline(task="sentiment-analysis")
user_input = input("Please enter a text to perform sentiment analysis upon:\n")
classification = classifier(user_input)
print("Sentimeny Analysis:")
print(classification)