Rahul-Samedavar commited on
Commit
1367f3e
·
1 Parent(s): 4b56ab5
Files changed (2) hide show
  1. app.py +1 -2
  2. util.py +0 -1
app.py CHANGED
@@ -113,7 +113,6 @@ def preview(db_name):
113
  return render_template('default-preview.html')
114
  file_path = os.path.join(UPLOAD_FOLDER, db_name)
115
  ext = db_name.split('.')[-1]
116
- print(file_path)
117
  if ext == 'pdf':
118
  return send_file(file_path, mimetype='application/pdf')
119
 
@@ -168,4 +167,4 @@ def export_chat(db_name):
168
 
169
 
170
  if __name__ == '__main__':
171
- app.run(debug=True)
 
113
  return render_template('default-preview.html')
114
  file_path = os.path.join(UPLOAD_FOLDER, db_name)
115
  ext = db_name.split('.')[-1]
 
116
  if ext == 'pdf':
117
  return send_file(file_path, mimetype='application/pdf')
118
 
 
167
 
168
 
169
  if __name__ == '__main__':
170
+ app.run()
util.py CHANGED
@@ -69,7 +69,6 @@ def search(query, db_path):
69
  embedding_function = OpenAIEmbeddings()
70
 
71
  if not os.path.exists(db_dir):
72
- print("lol:", db_dir)
73
  return []
74
 
75
  db = Chroma(persist_directory=db_dir, embedding_function=embedding_function)
 
69
  embedding_function = OpenAIEmbeddings()
70
 
71
  if not os.path.exists(db_dir):
 
72
  return []
73
 
74
  db = Chroma(persist_directory=db_dir, embedding_function=embedding_function)