acecalisto3 commited on
Commit
9fa7b65
·
verified ·
1 Parent(s): dab3ca0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -225,14 +225,14 @@ class FileProcessor:
225
  with open(filepath, 'r', encoding='utf-8', errors='ignore') as f:
226
  content = f.read()
227
  if content.strip():
228
- results.append({
229
- "source": "file",
230
- "filename": filename,
231
- "content": content,
232
- "timestamp": datetime.now().isoformat()
233
- })
234
- except Exception as e:
235
- logger.error(f"Error reading file {filename}: {str(e)}")
236
  return results
237
 
238
  def _process_single_file(self, file) -> List[Dict]:
 
225
  with open(filepath, 'r', encoding='utf-8', errors='ignore') as f:
226
  content = f.read()
227
  if content.strip():
228
+ results.append({
229
+ "source": "file",
230
+ "filename": filename,
231
+ "content": content,
232
+ "timestamp": datetime.now().isoformat()
233
+ })
234
+ except Exception as e:
235
+ logger.error(f"Error reading file {filename}: {str(e)}")
236
  return results
237
 
238
  def _process_single_file(self, file) -> List[Dict]: