AdityaTheDev commited on
Commit
347a1cf
·
verified ·
1 Parent(s): 465d512

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -0
app.py CHANGED
@@ -96,6 +96,21 @@ if query:
96
  with open('chunks.pkl', 'wb') as f:
97
  pickle.dump(chunks, f)
98
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
99
  temp.text("Searching for memories..!")
100
  if os.path.exists(file_path):
101
  with open(file_path,'rb') as f:
 
96
  with open('chunks.pkl', 'wb') as f:
97
  pickle.dump(chunks, f)
98
 
99
+ with open("chunks.pkl", "rb") as file:
100
+ st.download_button(
101
+ label="Download chunks.pkl file",
102
+ data=file,
103
+ file_name="chunks.pkl",
104
+ mime="application/octet-stream",
105
+ )
106
+ with open("faiss_index.pkl", "rb") as file:
107
+ st.download_button(
108
+ label="Download faiss.pkl file",
109
+ data=file,
110
+ file_name="faiss_index.pkl",
111
+ mime="application/octet-stream",
112
+ )
113
+
114
  temp.text("Searching for memories..!")
115
  if os.path.exists(file_path):
116
  with open(file_path,'rb') as f: