Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -113,9 +113,8 @@ class SemanticSearch:
|
|
113 |
|
114 |
def load_recommender(path, start_page=1):
|
115 |
global recommender
|
116 |
-
pdf_parse_status = 1
|
117 |
texts, pdf_parse_status = pdf_to_text(path, start_page=start_page)
|
118 |
-
chunks
|
119 |
recommender.fit(chunks)
|
120 |
return 'Corpus Loaded.', pdf_parse_status
|
121 |
|
|
|
113 |
|
114 |
def load_recommender(path, start_page=1):
|
115 |
global recommender
|
|
|
116 |
texts, pdf_parse_status = pdf_to_text(path, start_page=start_page)
|
117 |
+
chunks = text_to_chunks(texts, start_page=start_page)
|
118 |
recommender.fit(chunks)
|
119 |
return 'Corpus Loaded.', pdf_parse_status
|
120 |
|