File size: 917 Bytes
74e80c5
 
 
 
 
 
 
 
 
 
 
 
 
49c0458
 
 
0f0148b
bbf4029
 
49c0458
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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




with st.form("images"):

    st.write("Inside the form")
    slider_val = st.slider("Form slider")
    checkbox_val = st.checkbox("Form checkbox")

    # 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")