Spaces:
Sleeping
Sleeping
import os | |
if not os.path.exists("data/"): | |
os.makedirs("data/") | |
# now curl -L -o data/human-segmentation-dataset.zip https://www.kaggle.com/api/v1/datasets/download/trainingdatapro/human-segmentation-dataset | |
os.system("curl -L -o data/human-segmentation-dataset.zip https://www.kaggle.com/api/v1/datasets/download/trainingdatapro/human-segmentation-dataset") | |
os.system("unzip data/human-segmentation-dataset.zip -d data/") | |
os.system("rm data/human-segmentation-dataset.zip") | |
import streamlit as st | |
import pandas as pd | |
import numpy as np | |
voters = [ | |
"osman", | |
"eren", | |
"robin", | |
"mira", | |
"bilal", | |
"volunteer-1", | |
"volunteer-2", | |
"volunteer-3", | |
"volunteer-4", | |
"volunteer-5", | |
] | |
with st.form("images"): | |
st.write("Inside the form") | |
slider_val = st.slider("How fat") | |
password = st.text_input("Password", type="password") | |
# select voter from the list | |
username = st.selectbox("Select voter", voters) | |
# Every form must have a submit button. | |
submitted = st.form_submit_button("Submit") | |
if submitted: | |
st.write("slider", slider_val, "checkbox", checkbox_val) | |
st.write("Outside the form") |