My app runs great in local, but not when deployed it on cloud.
github: GitHub - vharis/Mahabharata: This repo for Mahabharata chat
stramlit:https://mahabharata.streamlit.app/
streamlit:1.40.2
python:3.12
Error:
httpx.ConnectError: 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/adminuser/venv/lib/python3.12/site-packages/streamlit/runtime/scriptrunner/exec_code.py", line 88, in exec_func_with_error_handling
result = func()
^^^^^^File "/home/adminuser/venv/lib/python3.12/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 579, in code_to_exec
exec(code, module.__dict__)File "/mount/src/mahabharata/Chat.py", line 26, in <module>
docs = vector_store.search(query=question, k=5, search_type="similarity")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/home/adminuser/venv/lib/python3.12/site-packages/langchain_core/vectorstores/base.py", line 343, in search
return self.similarity_search(query, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^