Update .venv/PythonProjectFile1.py
Browse files- .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 |
-
|
| 6 |
-
|
| 7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 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)
|