Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -204,11 +204,11 @@ def process_directory(directory, folder_paths, file_paths):
|
|
204 |
if file_ext in ['.rst', '.py']:
|
205 |
text = f.read().decode('utf-8')
|
206 |
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
|
213 |
return all_texts, file_references
|
214 |
|
|
|
204 |
if file_ext in ['.rst', '.py']:
|
205 |
text = f.read().decode('utf-8')
|
206 |
|
207 |
+
all_texts.append(text)
|
208 |
+
print("Filepaths brother:", file_path)
|
209 |
+
relative_path = os.path.relpath(file_path, tmpsubdirpath)
|
210 |
+
print("Relative Filepaths brother:", relative_path)
|
211 |
+
file_references.append(relative_path)
|
212 |
|
213 |
return all_texts, file_references
|
214 |
|