File size: 305 Bytes
84eeea5
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
from transformers import pipeline

myPipe = pipeline("text-classification", model="distilbert-base-uncased-finetuned-sst-2-english")

inputText = "Dr. Davis makes me want to run out of the room laughing."
inputText = input("Input the text you want classified:")

result = myPipe(inputText)

print(result)