Continuing the discussion from Error Dissabling:
Find the folder named .streamlit
in the working directory of your app. If it is not there, create it.
Open or Create a file named config.toml
Add this -
[global]
showWarningOnDirectExecution = false