Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -231,10 +231,10 @@ class FileProcessor:
|
|
231 |
"filename": filename,
|
232 |
"content": content,
|
233 |
"timestamp": datetime.now().isoformat()
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
|
239 |
def _process_single_file(self, file) -> List[Dict]:
|
240 |
try:
|
|
|
231 |
"filename": filename,
|
232 |
"content": content,
|
233 |
"timestamp": datetime.now().isoformat()
|
234 |
+
})
|
235 |
+
except Exception as e:
|
236 |
+
logger.error(f"Error reading file {filename}: {str(e)}")
|
237 |
+
return results
|
238 |
|
239 |
def _process_single_file(self, file) -> List[Dict]:
|
240 |
try:
|