Skip to content

d2cml-ai/streamlit-template-CAI-UP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Streamlit Template

This repository holds the template you can use to create the streamlit dashboard for your project. To use it, fork the repository and the clone the fork into your machine, and fill out the template in src/template.py. For more information on streamlit, you can read the docs. You can also check the example from class and its code.

Run locally

If you would like to make your presentation from a localy hosted page

  1. (Optional) Create an environment
  2. Make sure to have streamlit installed
pip install streamlit
  1. Run streamlit from the root directory
streamlit run src/template.py

A browser tab should automatically open. If not, click on the Local URL

Deploy on Streamlit Cloud

  1. You will need to create a Streamlit Cloud account.
  2. Once created, go to Create app.
  3. Select the option for deploying an app from a pre-existing repo
  4. Select your repo, the branch, and the path for the file you will be running
  5. After a few minutes, the app should deploy