There could be a few reasons why your self-created functions are not being recognized during deployment of the Streamlit app:
Incorrect file path - Make sure that the file path of the script containing the function is correctly set.
Missing dependencies - If your function relies on external modules or libraries, make sure those dependencies are installed in the environment where the Streamlit app is being deployed.
Function name conflict - Double-check that the name of your function is unique and not conflicting with built-in functions or other functions in your code.
Scoping issues - Ensure that the function is defined in the proper scope for the Streamlit app to access it.
Folder structure - Make sure your code and files are organized in a way that is compatible with Streamlit's required file structure.
In summary, check the file path, dependencies, function name, scoping, and folder structure to ensure that your self-created functions can be recognized during deployment of the Streamlit app.
Asked: 2022-12-13 11:00:00 +0000
Seen: 8 times
Last updated: Oct 18 '21