devve1 commited on
Commit
509c8ce
β€’
1 Parent(s): d435c23

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -314,7 +314,7 @@ def load_models_and_documents():
314
  while len(unique_ids) < len(payload_docs):
315
  unique_ids.append(uuid.uuid4().int)
316
 
317
- ordered_ids = OrderedDict({ name: ndarray(unique_ids) })
318
  np.savez_compressed(ids_path, ordered_ids)
319
  else:
320
  st.write('Loading the saved documents on disk')
@@ -802,7 +802,7 @@ if __name__ == '__main__':
802
  combined_sparse_matrix = vstack(sparse_matrices)
803
  save_npz(sparse_path, combined_sparse_matrix)
804
 
805
- ordered_ids.update({ base_name: ndarray(ids) })
806
  np.savez_compressed(ids_path, *ordered_ids)
807
 
808
  st.toast('Document(s) Ingested !', icon='πŸŽ‰')
 
314
  while len(unique_ids) < len(payload_docs):
315
  unique_ids.append(uuid.uuid4().int)
316
 
317
+ ordered_ids = OrderedDict({ name: np.array(unique_ids) })
318
  np.savez_compressed(ids_path, ordered_ids)
319
  else:
320
  st.write('Loading the saved documents on disk')
 
802
  combined_sparse_matrix = vstack(sparse_matrices)
803
  save_npz(sparse_path, combined_sparse_matrix)
804
 
805
+ ordered_ids.update({ base_name: np.array(ids) })
806
  np.savez_compressed(ids_path, *ordered_ids)
807
 
808
  st.toast('Document(s) Ingested !', icon='πŸŽ‰')