Jai12345 commited on
Commit
878a66c
·
1 Parent(s): 0348ce3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,6 +1,6 @@
1
  from sentence_transformers import SentenceTransformer, CrossEncoder, util
2
  import re
3
- from newspaper3k import Article
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