Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
from sentence_transformers import SentenceTransformer, CrossEncoder, util
|
2 |
import re
|
3 |
-
from newspaper3k
|
4 |
import docx2txt
|
5 |
from io import StringIO
|
6 |
from PyPDF2 import PdfFileReader
|
@@ -18,7 +18,7 @@ warnings.filterwarnings("ignore")
|
|
18 |
|
19 |
|
20 |
def extarct_test_from_url(url: str):
|
21 |
-
article = Article(url)
|
22 |
article.download()
|
23 |
article.parse
|
24 |
|
|
|
1 |
from sentence_transformers import SentenceTransformer, CrossEncoder, util
|
2 |
import re
|
3 |
+
from newspaper3k
|
4 |
import docx2txt
|
5 |
from io import StringIO
|
6 |
from PyPDF2 import PdfFileReader
|
|
|
18 |
|
19 |
|
20 |
def extarct_test_from_url(url: str):
|
21 |
+
article = Article(url,language-"en")
|
22 |
article.download()
|
23 |
article.parse
|
24 |
|