Spaces:
Build error
Build error
added model in function
Browse files
app.py
CHANGED
|
@@ -43,6 +43,7 @@ def fin_ext(text):
|
|
| 43 |
sents_list = []
|
| 44 |
for sent in doc.sents:
|
| 45 |
sents_list.append(sent.text)
|
|
|
|
| 46 |
results_list = []
|
| 47 |
for i in range(len(results)):
|
| 48 |
results_list.append(results[i]['label'])
|
|
|
|
| 43 |
sents_list = []
|
| 44 |
for sent in doc.sents:
|
| 45 |
sents_list.append(sent.text)
|
| 46 |
+
results = fin_model(sents_list)
|
| 47 |
results_list = []
|
| 48 |
for i in range(len(results)):
|
| 49 |
results_list.append(results[i]['label'])
|