Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The issue with deploying a Streamlit app and accessing a different script that contains all the function definitions is that it may result in circular imports if the script that contains function definitions imports modules from the Streamlit app file and vice versa. This can lead to errors and, in some cases, unexpected behavior. Additionally, if the script is not included in the deployment package, the app may not be able to access the required functions, leading to runtime errors. It is recommended to include all necessary function definitions and dependencies within the Streamlit app file for smooth and error-free deployment.