Spaces:
Sleeping
Sleeping
nan-motherboard commited on
Commit ·
977c7d6
1
Parent(s): 3b84673
modify3
Browse files
app.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
import time
|
| 3 |
|
| 4 |
-
with st.form("
|
| 5 |
st.write("Input")
|
| 6 |
# product
|
| 7 |
product=st.text_input("product")
|
|
@@ -12,11 +12,13 @@ with st.form("my_form"):
|
|
| 12 |
# hobby
|
| 13 |
hobby=st.text_input("hobby")
|
| 14 |
|
| 15 |
-
|
| 16 |
-
|
| 17 |
# Every form must have a submit button.
|
| 18 |
submitted = st.form_submit_button("Submit")
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
st.write("product", product)
|
| 21 |
st.write("gender", gender)
|
| 22 |
st.write("profession", profession)
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
import time
|
| 3 |
|
| 4 |
+
with st.form("my_input"):
|
| 5 |
st.write("Input")
|
| 6 |
# product
|
| 7 |
product=st.text_input("product")
|
|
|
|
| 12 |
# hobby
|
| 13 |
hobby=st.text_input("hobby")
|
| 14 |
|
|
|
|
|
|
|
| 15 |
# Every form must have a submit button.
|
| 16 |
submitted = st.form_submit_button("Submit")
|
| 17 |
+
clear = st.form_submit_button("Clear")
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
with st.form("my_output"):
|
| 21 |
+
if submitted:
|
| 22 |
st.write("product", product)
|
| 23 |
st.write("gender", gender)
|
| 24 |
st.write("profession", profession)
|