Spaces:
Sleeping
Sleeping
Rajan Sharma
commited on
Update upload_ingest.py
Browse files- upload_ingest.py +1 -2
upload_ingest.py
CHANGED
|
@@ -1,4 +1,3 @@
|
|
| 1 |
-
# upload_ingest.py
|
| 2 |
from typing import List, Dict, Optional
|
| 3 |
from pathlib import Path
|
| 4 |
|
|
@@ -18,5 +17,5 @@ def extract_text_from_files(paths: Optional[List[str]]) -> Dict[str, List[str]]:
|
|
| 18 |
artifacts.append({"path": p, "type": ext})
|
| 19 |
except Exception:
|
| 20 |
pass
|
| 21 |
-
#
|
| 22 |
return {"chunks": chunks, "artifacts": artifacts}
|
|
|
|
|
|
|
| 1 |
from typing import List, Dict, Optional
|
| 2 |
from pathlib import Path
|
| 3 |
|
|
|
|
| 17 |
artifacts.append({"path": p, "type": ext})
|
| 18 |
except Exception:
|
| 19 |
pass
|
| 20 |
+
# (PDF/Docx parsing can be added later.)
|
| 21 |
return {"chunks": chunks, "artifacts": artifacts}
|