bupa1018 commited on
Commit
53d7dc9
·
1 Parent(s): 68fd2f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -164,7 +164,9 @@ def process_directory(directory, folder_paths, file_paths):
164
 
165
  all_texts.append(text)
166
  print("Filepaths brother:", file_path)
167
- file_references.append(file_path)
 
 
168
 
169
 
170
  # Add this snippet after the 'all_texts.append(text)' and 'file_references.append(file_path)' lines.
 
164
 
165
  all_texts.append(text)
166
  print("Filepaths brother:", file_path)
167
+ relative_path = os.path.relpath(file_path, tmpsubdirpath)
168
+ print("Relative Filepaths brother:", relative_path)
169
+ file_references.append(relative_path)
170
 
171
 
172
  # Add this snippet after the 'all_texts.append(text)' and 'file_references.append(file_path)' lines.