File size: 558 Bytes
88adbcf
 
1c31e5e
88adbcf
 
1c31e5e
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import streamlit as st

repo_link = st.text_input("Github repository link:", value="", type="default", help=None, on_change=None)
x = st.slider('Select a value')
st.write(x, 'squared is', x * x)

with st.form("my_form"):
    st.write("Notice something wrong? Please tell us so we can improve.")
    feedback = st.text_input("Feedback", value="")

    # Every form must have a submit button.
    submitted = st.form_submit_button("Submit feedback")
    if submitted:
        st.write("repository", repo_link, "feedback", feedback)
st.write("Outside the form")