SaileshSivan commited on
Commit
e3f2fb4
·
1 Parent(s): 76126c6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -18
app.py CHANGED
@@ -63,24 +63,24 @@ if 'flowmessages' not in st.session_state:
63
  ]
64
 
65
  # Streamlit UI
66
- # Streamlit UI with styled input bars
67
- input_question = st.text_input("Type here.", key="input")
68
-
69
- # Apply custom HTML and CSS for styling
70
- st.markdown(
71
- """
72
- <style>
73
- .stTextInput {
74
- border-radius: 10px;
75
- padding: 10px;
76
- /* Add any additional styling here */
77
- }
78
- </style>
79
- """,
80
- unsafe_allow_html=True
81
- )
82
-
83
- submit = st.button("Submit", key="submit")
84
 
85
 
86
  # If the "Ask" button is clicked
 
63
  ]
64
 
65
  # Streamlit UI
66
+ with st.form(key='my_form'):
67
+ input_question = st.text_input("Type here.", key="input", class="stTextInput")
68
+
69
+ # Apply custom HTML and CSS for styling
70
+ st.markdown(
71
+ """
72
+ <style>
73
+ .stTextInput {
74
+ border-radius: 10px;
75
+ padding: 10px;
76
+ /* Add any additional styling here */
77
+ }
78
+ </style>
79
+ """,
80
+ unsafe_allow_html=True
81
+ )
82
+
83
+ submit = st.form_submit_button("Submit", key="submit")
84
 
85
 
86
  # If the "Ask" button is clicked