slight name change
Browse files
app.py
CHANGED
@@ -67,8 +67,8 @@ def fls(text):
|
|
67 |
sents_list = []
|
68 |
for sent in doc.sents:
|
69 |
sents_list.append(sent.text)
|
70 |
-
|
71 |
-
results =
|
72 |
print (results)
|
73 |
results_list = []
|
74 |
for i in range(len(results)):
|
|
|
67 |
sents_list = []
|
68 |
for sent in doc.sents:
|
69 |
sents_list.append(sent.text)
|
70 |
+
fls_model = pipeline("text-classification", model="yiyanghkust/finbert-fls", tokenizer="yiyanghkust/finbert-fls")
|
71 |
+
results = fls_model(sents_list)
|
72 |
print (results)
|
73 |
results_list = []
|
74 |
for i in range(len(results)):
|