king007 commited on
Commit
aa1527b
1 Parent(s): c6e29e8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
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, pdf_parse_status = text_to_chunks(texts, start_page=start_page)
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