Update app.py
Browse files
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:
|
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:
|
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='π')
|