YALCINKAYA commited on
Commit
1efe45e
·
verified ·
1 Parent(s): d8840e8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -245,7 +245,7 @@ def handle_upload():
245
 
246
  # Now that the document is uploaded, call load_document_store()
247
  print(f"File uploaded successfully. Calling load_document_store()...")
248
- load_document_store()
249
  except Exception as e:
250
  return jsonify({"error": f"Error saving file: {e}"}), 502
251
 
 
245
 
246
  # Now that the document is uploaded, call load_document_store()
247
  print(f"File uploaded successfully. Calling load_document_store()...")
248
+ add_document_store_to_index()
249
  except Exception as e:
250
  return jsonify({"error": f"Error saving file: {e}"}), 502
251