server.py
contains the API code for the Flask server (back-end)main.py
contains the streamlit code (front-end)
pip install plotly streamlit pandas requests flask
To the run the example, you will need to have two separate terminals and run the two scripts:
# to run the Flask server
FLASK_APP=server.py flask run
# to run Streamlit
streamlit run main.py