Spaces:
Sleeping
Sleeping
th8m0z
commited on
Commit
·
89018a0
1
Parent(s):
2dae07c
password not visible
Browse files- functions.py +1 -0
functions.py
CHANGED
@@ -59,6 +59,7 @@ def text_to_chunks(texts, word_length=300, start_page=1, file_number=1):
|
|
59 |
def load_recommender(paths, start_page=1):
|
60 |
global recommender
|
61 |
chunks = []
|
|
|
62 |
for idx, path in enumerate(paths):
|
63 |
chunks += text_to_chunks(pdf_to_text(path, start_page=start_page), start_page=start_page, file_number=idx+1)
|
64 |
recommender.fit(chunks)
|
|
|
59 |
def load_recommender(paths, start_page=1):
|
60 |
global recommender
|
61 |
chunks = []
|
62 |
+
print("working")
|
63 |
for idx, path in enumerate(paths):
|
64 |
chunks += text_to_chunks(pdf_to_text(path, start_page=start_page), start_page=start_page, file_number=idx+1)
|
65 |
recommender.fit(chunks)
|