Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,6 @@ st.set_page_config(page_title="Search Engine", layout="wide")
|
|
14 |
# Set up the Streamlit app title and search bar
|
15 |
st.title("Search Engine")
|
16 |
|
17 |
-
|
18 |
with st.form("my_form"):
|
19 |
st.write("Login to Search Engine")
|
20 |
index_name = st.text_input("Enter a database name:", "")
|
@@ -22,10 +21,10 @@ with st.form("my_form"):
|
|
22 |
namespace = st.text_input("Enter a table name:", "")
|
23 |
# slider_val = st.slider("Form slider")
|
24 |
# checkbox_val = st.checkbox("Form checkbox")
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
# if st.button("Connect to Search Engine Database", type="primary"):
|
30 |
# index_name = st.text_input("Enter a database name:", "")
|
31 |
# key = st.text_input("Enter a key:", "")
|
|
|
14 |
# Set up the Streamlit app title and search bar
|
15 |
st.title("Search Engine")
|
16 |
|
|
|
17 |
with st.form("my_form"):
|
18 |
st.write("Login to Search Engine")
|
19 |
index_name = st.text_input("Enter a database name:", "")
|
|
|
21 |
namespace = st.text_input("Enter a table name:", "")
|
22 |
# slider_val = st.slider("Form slider")
|
23 |
# checkbox_val = st.checkbox("Form checkbox")
|
24 |
+
|
25 |
+
# Every form must have a submit button.
|
26 |
+
submitted = st.form_submit_button("Connect to My Search Engine")
|
27 |
+
if submitted:
|
28 |
# if st.button("Connect to Search Engine Database", type="primary"):
|
29 |
# index_name = st.text_input("Enter a database name:", "")
|
30 |
# key = st.text_input("Enter a key:", "")
|