Spaces:
Runtime error
Runtime error
Just load model once
#2
by
osanseviero
- opened
app.py
CHANGED
@@ -25,8 +25,8 @@ def fin_ext(text):
|
|
25 |
return make_spans(text,results)
|
26 |
|
27 |
##Forward Looking Statement
|
|
|
28 |
def fls(text):
|
29 |
-
fls_model = pipeline("text-classification", model="FinanceInc/finbert_fls", tokenizer="FinanceInc/finbert_fls")
|
30 |
results = fls_model(split_in_sentences(text))
|
31 |
return make_spans(text,results)
|
32 |
|
|
|
25 |
return make_spans(text,results)
|
26 |
|
27 |
##Forward Looking Statement
|
28 |
+
fls_model = pipeline("text-classification", model="FinanceInc/finbert_fls", tokenizer="FinanceInc/finbert_fls")
|
29 |
def fls(text):
|
|
|
30 |
results = fls_model(split_in_sentences(text))
|
31 |
return make_spans(text,results)
|
32 |
|