- Fork this repository
- Open in GitHub Codespaces (or press
.
for github.dev) - In terminal:
pip install -r requirements.txt
- Run:
streamlit run app.py
- Install Python
- Install VSCode
- Install Git (and connect to Github)
- Clone the repo
git clone https://github.com/x/streamlit-starter.git
- Install the requirements
cd streamlit-starter pip install -r requirements.txt
- Run the server
streamlit run app.py
- Your browser will open to
http://localhost:8501
- Edit by opening the
streamlit-starter
folder in VSCode
There are three sample applications.
This is just your basic "hello world"
but with a simple input. Start here.
Here's an example of how you can turn your text adventure game into a streamlit app.
Here's an example of how to take a pickled model and make an interactive evaluator using Streamlit.
Caution
In order for the data/model.pkl
to load, I had to make sure the scikit-learn
and numpy
versions matched the Collab environment where we trained the model. Be aware that, if you are from the future, you may need to update these in requirements.txt
to match the new versions of Collab (use !pip show numpy
and !pip show scikit-learn
to check).