SaileshSivan commited on
Commit
4c28f88
·
1 Parent(s): 313fa00

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +38 -38
app.py CHANGED
@@ -63,44 +63,44 @@ if 'flowmessages' not in st.session_state:
63
  ]
64
 
65
  # Streamlit UI
66
- input_question = st.text_input("Type here.", key="input",autocomplete="off")
67
-
68
- # Apply custom HTML and CSS for styling
69
- st.markdown(
70
- """
71
- <style>
72
- .stTextInput {
73
- border-radius: 15px;
74
- padding: 12px;
75
- margin-top: 10px;
76
- margin-bottom: 10px;
77
- box-shadow: 2px 2px 5px #888888;
78
- border: 1px solid #dddddd;
79
- font-size: 16px;
80
- width: 700px;
81
- /* Add any additional styling here */
82
- }
83
- /* Hide the "press enter to apply" message */
84
- .stTextInput::-webkit-input-placeholder {
85
- color: transparent;
86
- }
87
- .stTextInput:-moz-placeholder {
88
- color: transparent;
89
- }
90
- .stTextInput::-moz-placeholder {
91
- color: transparent;
92
- }
93
- .stTextInput:-ms-input-placeholder {
94
- color: transparent;
95
- }
96
- </style>
97
- """,
98
- unsafe_allow_html=True
99
- )
100
-
101
-
102
-
103
- submit = st.button("Submit")
104
 
105
 
106
  # If the "Ask" button is clicked
 
63
  ]
64
 
65
  # Streamlit UI
66
+ # Streamlit UI
67
+ with st.form(key='my_form'):
68
+ input_question = st.text_input("Type here.", key="input")
69
+
70
+ # Apply custom HTML and CSS for styling
71
+ st.markdown(
72
+ """
73
+ <style>
74
+ .stTextInput {
75
+ border-radius: 15px;
76
+ padding: 12px;
77
+ margin-top: 10px;
78
+ margin-bottom: 10px;
79
+ box-shadow: 2px 2px 5px #888888;
80
+ border: 1px solid #dddddd;
81
+ font-size: 16px;
82
+ width: 700px;
83
+ /* Add any additional styling here */
84
+ }
85
+ /* Hide the "press enter to apply" message */
86
+ .stTextInput::-webkit-input-placeholder {
87
+ color: transparent;
88
+ }
89
+ .stTextInput:-moz-placeholder {
90
+ color: transparent;
91
+ }
92
+ .stTextInput::-moz-placeholder {
93
+ color: transparent;
94
+ }
95
+ .stTextInput:-ms-input-placeholder {
96
+ color: transparent;
97
+ }
98
+ </style>
99
+ """,
100
+ unsafe_allow_html=True
101
+ )
102
+
103
+ submit = st.form_submit_button("Submit")
104
 
105
 
106
  # If the "Ask" button is clicked