Penality commited on
Commit
1e38ca3
·
verified ·
1 Parent(s): 58ffb78

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -55,7 +55,7 @@ def store_document(text):
55
  print("storing document")
56
 
57
  # Generate a unique filename
58
- filename = os.path.join(DOCS_DIR, f"doc_{len(metadata) + 1}.txt")
59
 
60
  # Save document in a file
61
  with open(filename, "w") as f:
 
55
  print("storing document")
56
 
57
  # Generate a unique filename
58
+ filename = os.path.join(DOCUMENT_DIR, f"doc_{len(metadata) + 1}.txt")
59
 
60
  # Save document in a file
61
  with open(filename, "w") as f: