Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -38,8 +38,10 @@ import torch
|
|
38 |
from pysentimiento import create_analyzer
|
39 |
analyzer = create_analyzer(task="sentiment", lang="pt")
|
40 |
|
|
|
|
|
41 |
def get_sentiment(input_text):
|
42 |
-
return
|
43 |
|
44 |
app_examples = [
|
45 |
['Não estou em minha melhor versão'],
|
|
|
38 |
from pysentimiento import create_analyzer
|
39 |
analyzer = create_analyzer(task="sentiment", lang="pt")
|
40 |
|
41 |
+
prever = analyzer.predict(input_text)
|
42 |
+
|
43 |
def get_sentiment(input_text):
|
44 |
+
return prever(input_text)
|
45 |
|
46 |
app_examples = [
|
47 |
['Não estou em minha melhor versão'],
|