gmirsky / streamlit_survey_example

A simple example of using the survey class for Streamlit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A Streamlit Survey Example

A simple example of using the survey class for Streamlit,

This example features some basic Streamlit survey functionality in a python program. There is minimal logic and error checking. This example is designed to show the survey capabilities of Streamlit.

Prerequisites

  • Docker or Podman installed.
  • Git installed

Run the example

Clone this library using the following command:

git clone https://github.com/gmirsky/streamlit_survey_example.git

Navigate to the directory that you just cloned from Github.

Build the container using the following command:

docker build -t survey:latest .

If using Podman to build the container then use the following commands:

export BUILDAH_FORMAT=docker
docker build -t survey:latest .

Verify that the docker image was built.

docker image ls

Run the container using the following command:

docker run -p 8501:8501 survey:latest

Now open your browser and open up the following web site to see the survey demonstration:

http://127.0.0.1:8501

About

A simple example of using the survey class for Streamlit

License:GNU General Public License v3.0


Languages

Language:Python 94.7%Language:Dockerfile 5.3%