Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -184,7 +184,7 @@ class FileProcessor:
|
|
184 |
if os.path.isdir(file_path):
|
185 |
logger.warning(f"Skipping directory: {file_path}")
|
186 |
continue
|
187 |
-
|
188 |
if not os.path.exists(file_path):
|
189 |
logger.warning(f"File does not exist: {file_path}")
|
190 |
continue
|
@@ -213,7 +213,6 @@ class FileProcessor:
|
|
213 |
return combined_data
|
214 |
|
215 |
|
216 |
-
|
217 |
def _process_single_file(self, file) -> List[Dict]:
|
218 |
try:
|
219 |
file_stat = os.stat(file.name)
|
@@ -365,7 +364,7 @@ def create_interface():
|
|
365 |
'content': content,
|
366 |
'timestamp': datetime.now().isoformat()
|
367 |
})
|
368 |
-
|
369 |
if file:
|
370 |
results.extend(file_processor.process_files(file))
|
371 |
|
@@ -448,4 +447,4 @@ def main():
|
|
448 |
)
|
449 |
|
450 |
if __name__ == "__main__":
|
451 |
-
main()
|
|
|
184 |
if os.path.isdir(file_path):
|
185 |
logger.warning(f"Skipping directory: {file_path}")
|
186 |
continue
|
187 |
+
|
188 |
if not os.path.exists(file_path):
|
189 |
logger.warning(f"File does not exist: {file_path}")
|
190 |
continue
|
|
|
213 |
return combined_data
|
214 |
|
215 |
|
|
|
216 |
def _process_single_file(self, file) -> List[Dict]:
|
217 |
try:
|
218 |
file_stat = os.stat(file.name)
|
|
|
364 |
'content': content,
|
365 |
'timestamp': datetime.now().isoformat()
|
366 |
})
|
367 |
+
|
368 |
if file:
|
369 |
results.extend(file_processor.process_files(file))
|
370 |
|
|
|
447 |
)
|
448 |
|
449 |
if __name__ == "__main__":
|
450 |
+
main()
|