Spaces:
Runtime error
Runtime error
Kangarroar
commited on
Commit
·
12f35c3
1
Parent(s):
b417cf6
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,19 @@
|
|
1 |
import streamlit as st
|
2 |
import os
|
3 |
import streamlit as st
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
|
|
5 |
# First row
|
6 |
col1, col2 = st.columns(2)
|
7 |
col1.title('DIFF-SVC Render')
|
|
|
1 |
import streamlit as st
|
2 |
import os
|
3 |
import streamlit as st
|
4 |
+
import streamlit as st
|
5 |
+
|
6 |
+
with st.form("my_form"):
|
7 |
+
st.write("Inside the form")
|
8 |
+
slider_val = st.slider("Form slider")
|
9 |
+
checkbox_val = st.checkbox("Form checkbox")
|
10 |
+
|
11 |
+
# Every form must have a submit button.
|
12 |
+
submitted = st.form_submit_button("Submit")
|
13 |
+
if submitted:
|
14 |
+
st.write("slider", slider_val, "checkbox", checkbox_val)
|
15 |
|
16 |
+
st.write("Outside the form")
|
17 |
# First row
|
18 |
col1, col2 = st.columns(2)
|
19 |
col1.title('DIFF-SVC Render')
|