DrDavis commited on
Commit
84eeea5
·
verified ·
1 Parent(s): 17c6d62

Update .venv/PythonProjectFile1.py

Browse files
Files changed (1) hide show
  1. .venv/PythonProjectFile1.py +10 -7
.venv/PythonProjectFile1.py CHANGED
@@ -1,7 +1,10 @@
1
- from transformers import pipeline
2
-
3
- myPipe = pipeline("text-classification", model="distilbert-base-uncased-finetuned-sst-2-english")
4
-
5
- result = myPipe("Dr. Davis makes me want to run out of the room laughing.")
6
-
7
- print(result)
 
 
 
 
1
+ from transformers import pipeline
2
+
3
+ myPipe = pipeline("text-classification", model="distilbert-base-uncased-finetuned-sst-2-english")
4
+
5
+ inputText = "Dr. Davis makes me want to run out of the room laughing."
6
+ inputText = input("Input the text you want classified:")
7
+
8
+ result = myPipe(inputText)
9
+
10
+ print(result)