跳转至

streamlit-template

streamlit-template

项目信息
仓库 https://github.com/Maicarons/streamlit-template
主要语言 Python
Stars 1
类型 原创项目
许可证 Apache-2.0
最近更新 2024-09-22

streamlit-template

A streamlined template for Streamlit applications.

Usage

1. Create Initial Environment

## For conda users
conda create -n my_streamlit_env python=3.9
conda activate my_streamlit_env

## For venv users
python -m venv streamlit_env
source streamlit_env/bin/activate # Linux
streamlit_env\Scripts\activate    # Windows

## Users who do not wish to use a virtual environment can proceed to the next step directly

2. Install Dependencies

## Using conda
conda env update -f environment.yml --prune # Ensure to modify some details in the environment.yml file
## Using pip
pip install -r requirements.txt

3. Run the Application

streamlit run streamlit_app.py

Open for issues! Enjoy!

By Maicarons