Hello. So I am currently new to working with a flask api and I am just wondering how I can connect a streamlit application to the flask api? Like I would want the streamlit application to be using the flask api that then pulls the database. Currently, my streamlit application is in a folder and it contains a docker file. And I have my flask api in a separate folder.
Main Folder Flask-API Folder - main.py - requirements.txt - table1.db Streamlit application Folder - app.py - Dockerfile - more python files - requirements.txt
For example, if like a user clicked on a check box that produced a graph on streamlit, how can I get the streamlit application to go into the flask-api folder(contact the api) and get/pull the database. I am just wondering what I would have to add to my main.py file in my flask-api folder.
Note: The purpose as to why I am trying to get the streamlit application to contact the flask api is because right now, the streamlit application is contacting another API instead and it takes a while for the graphs to be produced.
Any help is greatly appreciated.