Skip to content

Commit

Permalink
Merge pull request #57 from PeARSearch/fix-vstack
Browse files Browse the repository at this point in the history
Fix vstack
  • Loading branch information
minimalparts authored Jul 10, 2024
2 parents 8355afd + 16b5dda commit 8755cd1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/__init_for_pythonanywhere__.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ def setup_logger(name, log_file, level=logging.INFO):
# Jinja global variables
########################

dir_path = DEFAULT_PATH
app.config['OWN_BRAND'] = True if getenv('OWN_BRAND', "false").lower() == 'true' else False
logo_path = getenv('LOGO_PATH', '')
if logo_path != '' and path.isfile(join(logo_path, "logo.png")):
Expand Down
2 changes: 1 addition & 1 deletion app/search/score_pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def mk_vec_matrix(lang):
for i in range(1,len(npzs)):
npz = load_npz(npzs[i]).toarray()
username = npzs[i].split('.u.')[1].replace('.npz','')
m = vstack((m, npz))
m = vstack((csr_matrix(m), csr_matrix(npz)))
c+=npz.shape[0]
bins.append(c)
idxs = joblib.load(join(pod_dir, username, lang, npzs[i].replace('.npz','')+'.npz.idx'))[1]
Expand Down

0 comments on commit 8755cd1

Please sign in to comment.