Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -36,6 +36,7 @@ def preprocess(text):
|
|
| 36 |
def sentiment_analysis(text):
|
| 37 |
text = preprocess(text)
|
| 38 |
|
|
|
|
| 39 |
encoded_input = tokenizer(text, return_tensors = "pt") # for PyTorch-based models
|
| 40 |
output = model(**encoded_input)
|
| 41 |
scores_ = output[0][0].detach().numpy()
|
|
|
|
| 36 |
def sentiment_analysis(text):
|
| 37 |
text = preprocess(text)
|
| 38 |
|
| 39 |
+
|
| 40 |
encoded_input = tokenizer(text, return_tensors = "pt") # for PyTorch-based models
|
| 41 |
output = model(**encoded_input)
|
| 42 |
scores_ = output[0][0].detach().numpy()
|