. for github.dev)pip install -r requirements.txtstreamlit run app.pygit clone https://github.com/x/streamlit-starter.git
cd streamlit-starter
pip install -r requirements.txt
streamlit run app.py
http://localhost:8501streamlit-starter folder in VSCodeThere are three sample applications.
app.pyThis is just your basic "hello world" but with a simple input. Start here.
game.pyHere’s an example of how you can turn your text adventure game into a streamlit app.
model_eval.pyHere’s an example of how to take a pickled model and make an interactive evaluator using Streamlit.
[!CAUTION]
In order for thedata/model.pklto load, I had to make sure thescikit-learnandnumpyversions matched the Collab environment where we trained the model. Be aware that, if you are from the future, you may need to update these inrequirements.txtto match the new versions of Collab (use!pip show numpyand!pip show scikit-learnto check).