Spaces:
Running
Running
color generate predictions button red
Browse files- ProtHGT_app.py +20 -2
ProtHGT_app.py
CHANGED
@@ -248,9 +248,27 @@ with st.sidebar:
|
|
248 |
)
|
249 |
|
250 |
if selected_proteins and selected_go_category:
|
251 |
-
|
252 |
button_disabled = st.session_state.submitted
|
253 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
254 |
if st.button("Generate Predictions",
|
255 |
disabled=button_disabled,
|
256 |
key="generate_predictions",
|
@@ -265,7 +283,7 @@ with st.sidebar:
|
|
265 |
st.session_state.predictions_df = None
|
266 |
st.session_state.submitted = False
|
267 |
st.session_state.previous_inputs = current_inputs
|
268 |
-
|
269 |
st.warning("⚠️ Due to memory and computational constraints, the maximum number of proteins that can be processed at once is limited to 100 proteins. For larger datasets, please consider running the model locally using our [GitHub repository](https://github.com/HUBioDataLab/ProtHGT).")
|
270 |
|
271 |
if st.session_state.submitted:
|
|
|
248 |
)
|
249 |
|
250 |
if selected_proteins and selected_go_category:
|
251 |
+
|
252 |
button_disabled = st.session_state.submitted
|
253 |
|
254 |
+
# Add custom CSS for red button
|
255 |
+
st.markdown("""
|
256 |
+
<style>
|
257 |
+
div.stButton > button:first-child {
|
258 |
+
background-color: #ff4b4b;
|
259 |
+
color: white;
|
260 |
+
}
|
261 |
+
div.stButton > button:hover {
|
262 |
+
background-color: #ff0000;
|
263 |
+
color: white;
|
264 |
+
}
|
265 |
+
div.stButton > button:focus {
|
266 |
+
background-color: #ff0000;
|
267 |
+
color: white;
|
268 |
+
}
|
269 |
+
</style>
|
270 |
+
""", unsafe_allow_html=True)
|
271 |
+
|
272 |
if st.button("Generate Predictions",
|
273 |
disabled=button_disabled,
|
274 |
key="generate_predictions",
|
|
|
283 |
st.session_state.predictions_df = None
|
284 |
st.session_state.submitted = False
|
285 |
st.session_state.previous_inputs = current_inputs
|
286 |
+
|
287 |
st.warning("⚠️ Due to memory and computational constraints, the maximum number of proteins that can be processed at once is limited to 100 proteins. For larger datasets, please consider running the model locally using our [GitHub repository](https://github.com/HUBioDataLab/ProtHGT).")
|
288 |
|
289 |
if st.session_state.submitted:
|