server.pycontains the API code for the Flask server (back-end)main.pycontains the streamlit code (front-end)
pip install plotly streamlit pandas requests flaskTo 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