daveckw commited on
Commit
3a93051
·
1 Parent(s): d2973e3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -14
app.py CHANGED
@@ -57,20 +57,6 @@ def construct_index(directory_path):
57
  )
58
  index.save_to_disk("index.json")
59
 
60
- # Define the paths to the source and destination folders
61
- absolute_path = os.path.dirname(__file__)
62
- src_folder = os.path.join(absolute_path, "docs/")
63
- dest_folder = os.path.join(absolute_path, "indexed_documents/")
64
-
65
- # Get a list of all the files in the source folder
66
- files = os.listdir(src_folder)
67
-
68
- # Move each file from the source folder to the destination folder
69
- for file in files:
70
- src_path = os.path.join(src_folder, file)
71
- dest_path = os.path.join(dest_folder, file)
72
- shutil.move(src_path, dest_path)
73
-
74
  return index
75
 
76
 
 
57
  )
58
  index.save_to_disk("index.json")
59
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
60
  return index
61
 
62