Spaces:
Sleeping
Sleeping
Commit
·
4c28f88
1
Parent(s):
313fa00
Update app.py
Browse files
app.py
CHANGED
|
@@ -63,44 +63,44 @@ if 'flowmessages' not in st.session_state:
|
|
| 63 |
]
|
| 64 |
|
| 65 |
# Streamlit UI
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
submit = st.
|
| 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
|