Penality commited on
Commit
5bae164
·
verified ·
1 Parent(s): c317ea4

Update app.py

Browse files

made index and metadata files not required in store_document_data

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -29,7 +29,7 @@ embedding_model = SentenceTransformer(
29
  embedding_dim = 768 # Adjust according to model
30
 
31
 
32
- def store_document_data(PDF_FILE, METADATA_FILE, INDEX_FILE):
33
  print(" Storing document...")
34
 
35
  if PDF_FILE:
 
29
  embedding_dim = 768 # Adjust according to model
30
 
31
 
32
+ def store_document_data(PDF_FILE, METADATA_FILE=None, INDEX_FILE=None):
33
  print(" Storing document...")
34
 
35
  if PDF_FILE: