Spaces:
Runtime error
Runtime error
Omar Sanseviero
commited on
Commit
·
68ab4d1
1
Parent(s):
1564904
Just load model once
Browse files
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 |
|