Imrovements
Fix the Streamlit import error.
Current error:
ImportError: cannot import name ‘get_supported_formats’ from ‘utils.ingestion’
Please inspect:
– app_pages/upload.py
– utils/ingestion.py
Find where upload.py imports get_supported_formats from utils.ingestion.
Fix one of these ways:
Option A — Preferred:
If get_supported_formats is no longer needed, remove it from the import list in upload.py and remove any references to it.
Option B:
If the upload page still needs this helper, recreate it inside utils/ingestion.py.
Expected behavior:
– App should load without ImportError.
– Upload page should still show supported file types.
– Supported formats should match the actual ingestion logic.
Suggested helper if needed:
def get_supported_formats():
return {
“CSV”: [“.csv”],
“Excel”: [“.xlsx”, “.xls”],
“PDF”: [“.pdf”],
“Word”: [“.docx”],
“Text”: [“.txt”]
}
Also search the whole codebase for:
get_supported_formats
Update every broken import/reference so there is only one source of truth.
Run the app after fixing to confirm the upload page loads successfully.

