Spaces:
Runtime error
Runtime error
ombhagwat24
commited on
Commit
•
3bb9629
1
Parent(s):
e976e8d
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,5 @@
|
|
1 |
from transformers import pipeline
|
2 |
import torch
|
3 |
-
import torch.nn.fuction as F
|
4 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
5 |
|
6 |
model_name="distilbert-base-uncased-finetuned-sst-2-english"
|
@@ -12,6 +11,4 @@ classifier = pipeline("sentiment-analysis",model=model, tokenizer=tokenizer)
|
|
12 |
|
13 |
result=classifier(["we hope you don't hate it."],
|
14 |
["I like your product"])
|
15 |
-
|
16 |
-
for result in result:
|
17 |
-
print(result)
|
|
|
1 |
from transformers import pipeline
|
2 |
import torch
|
|
|
3 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
4 |
|
5 |
model_name="distilbert-base-uncased-finetuned-sst-2-english"
|
|
|
11 |
|
12 |
result=classifier(["we hope you don't hate it."],
|
13 |
["I like your product"])
|
14 |
+
|
|
|
|