title python_version sdk sdk_version app_file pinned
{"title"=>nil}
3.10.7
streamlit
1.10.0
src/app.py
false

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference


streamlit-template

Usage

  1. Copy from secrets_config/sample.secrets.toml to .streamlit/secrets.toml, and input value
env='develop'
hashed_text='5feceb66ffc86f38d952786c6d696c79c2dbc239dd4e91b46729d73a27fb57e9'
  1. Run build.sh
sh build.sh
  1. Run compose_up.sh
sh compose_up.sh
  1. Access to localhost:8501

Access

About requirements.txt

# Basic
streamlit
pandas
numpy
matplotlib
scikit-learn

Setup about Huggingface

git remote add space https://huggingface.co/spaces/{{ OWNER NAME }}/{{ SPACE NAME}}
git push --force space main

# example:
git remote add space https://huggingface.co/spaces/tn1994/streamlit-template
git push --force space main
  • Add README.md

https://huggingface.co/docs/hub/spaces-settings#spaces-settings

https://huggingface.co/docs/hub/spaces-config-reference

  • Setup github actions

https://huggingface.co/docs/hub/spaces-github-actions

  • Get access token

https://huggingface.co/settings/tokens

  • Setup github action secrets

https://obel.hatenablog.jp/entry/20220129/1643400000

  • Setup space secrets

https://huggingface.co/docs/hub/spaces-overview#managing-secrets

  • Theme Settings

https://huggingface.co/settings/theme