There are a few potential approaches to solve this:
Direct solution
The most direct solution is to add /Library/Frameworks/Python.framework/Version/3.12/bin/ to your PATH, so that when your terminal looks for commands that it can run, it also looks in that directory.
For anyone looking at this in the future, that effectively does “Add /Library/Frameworks…/bin/ to the beginning of the PATH”
So, when I type streamlit, it looks various places (including the current folder) for a program called streamlit. If it’s not in the current folder, then it looks at the PATH variable to see what folders to look in.
Again, my strong recommendation is not to do it this way, but it should work.