Streamlit deployment error

Hi there, I ran into an issue as I was trying to deploy my streamlit app. Here’s a list of errors I encountered:
ValueError: This app has encountered an error. The original error message is redacted to prevent data leaks. Full error details have been recorded in the logs (if you’re on Streamlit Cloud, click on ‘Manage app’ in the lower right of your app).


File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/", line 565, in _run_script
    exec(code, module.__dict__)File "/app/langchaingptdocuments/", line 7, in <module>
    from ingest_data import embed_docFile "/app/langchaingptdocuments/", line 10, in <module>
    loader = UnstructuredFileLoader("state_of_the_union.txt")File "/home/appuser/venv/lib/python3.9/site-packages/langchain/document_loaders/", line 65, in __init__
    super().__init__(mode=mode)File "/home/appuser/venv/lib/python3.9/site-packages/langchain/document_loaders/", line 17, in __init__
    raise ValueError(

I appreciate any help you can provide as I am in need of finishing the project as soon as possible.
Thank you all.

Looks like UnstructuredFileLoader is not happy with what you are giving to it.