Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
| 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.
|