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).

Traceback:

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

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.