Interface concepts are in our StreamLit reality.streamlit.app. Bugs occur when StreamLit updates python libraries.
Our Streamlit interface includes a dropdown menu for selecting feature datasets.
Currently only the "Job Listings" feature dataset is activated.
Our Streamlit interface includes a dropdown menu for selecting targets.
Currently only the "Job Listings" target is activated. TO DO: Pull in data for the other targets.
- Honey Bee Health - Bee population change (Irene created 4 columns, each would be its own file)
- Job Growth - Top 20% counties for job growth (to-do)
- Wage Growth - Top 20% counties for wage growth (to-do)
- Eye Blinks - Brain fMRI Voxels
- Job Listings - Reality or Fiction
Install the streamlit Command-Line Interface (CLI) if you haven't yet. If you have an error during the install, our docs page may have a fix.
pip install streamlit
This should launch a browser with demos:
streamlit hello
Initiate a virtual environment before running streamlit via streamlit run app.py
python3 -m venv env
source env/bin/activate
For Windows,
python3 -m venv env
.\env\Scripts\activate
pip install -r requirements.txt
Launch our interface locally:
streamlit run app.py
If an error occurs, our docs page may have a fix.
TO DO: load parameters.yaml file, add more parameters:
streamlit run app.py "parameters.yaml"
TO DO: When parameters above are omitted, use defaults (below).
Our Realitystream Streamlit app can push user-generated model performance reports directly to a designated repository location /output/user_generated_json.
To configure your credentials, simply copy the example_secrets.toml file to secrets.toml and update it with your own information. The secret is stored under the .streamlit directory.
When a user runs a model, the report is sent to the specified repository location, and a download option is provided.
TO DO: Send a #parameters hash value into Streamlit
Pass in a URL hash #parameters= value with the path to parameters.yaml, like this:
https://reality.streamlit.app/#parameters=https://raw.githubusercontent.com/ModelEarth/RealityStream/main/parameters.yaml
Test when building the app.py to a localhost port.
The build steps are here: https://model.earth/RealityStream
Or test by deploying your fork. Sign into share.streamlit.io Click 'Deploy an app' and then paste in your GitHub fork URL
Parameter can also reside after ? in Streamlit URL