Sync from GitHub (preserve manual model files)
Browse files
StreamlitApp/StreamlitApp.py
CHANGED
|
@@ -131,11 +131,11 @@ if page == "Predict":
|
|
| 131 |
preset_cols = st.columns(2)
|
| 132 |
with preset_cols[0]:
|
| 133 |
if st.button("Use strong AMP example"):
|
| 134 |
-
st.session_state.predict_input_widget = "
|
| 135 |
st.rerun()
|
| 136 |
with preset_cols[1]:
|
| 137 |
if st.button("Use weak sequence example"):
|
| 138 |
-
st.session_state.predict_input_widget = "
|
| 139 |
st.rerun()
|
| 140 |
|
| 141 |
seq_input = st.text_area(
|
|
@@ -198,7 +198,7 @@ if page == "Predict":
|
|
| 198 |
if top_candidate:
|
| 199 |
with st.container():
|
| 200 |
|
| 201 |
-
st.write("**Top Candidate**")
|
| 202 |
seq = top_candidate.get("Sequence", "")
|
| 203 |
cc = st.columns([9, 1])
|
| 204 |
with cc[0]:
|
|
@@ -211,7 +211,9 @@ if page == "Predict":
|
|
| 211 |
toast_fn("Copied to clipboard")
|
| 212 |
else:
|
| 213 |
st.success("Copied to clipboard")
|
| 214 |
-
|
|
|
|
|
|
|
| 215 |
st.write(f"Reason: {top_candidate['Reason']}")
|
| 216 |
|
| 217 |
st.divider()
|
|
|
|
| 131 |
preset_cols = st.columns(2)
|
| 132 |
with preset_cols[0]:
|
| 133 |
if st.button("Use strong AMP example"):
|
| 134 |
+
st.session_state.predict_input_widget = "RGGRLCYCRGWICFCVGR"
|
| 135 |
st.rerun()
|
| 136 |
with preset_cols[1]:
|
| 137 |
if st.button("Use weak sequence example"):
|
| 138 |
+
st.session_state.predict_input_widget = "KAEEEVEKNKEEAEEKAEKKIAE"
|
| 139 |
st.rerun()
|
| 140 |
|
| 141 |
seq_input = st.text_area(
|
|
|
|
| 198 |
if top_candidate:
|
| 199 |
with st.container():
|
| 200 |
|
| 201 |
+
st.write("**Top AMP Predicted Candidate**")
|
| 202 |
seq = top_candidate.get("Sequence", "")
|
| 203 |
cc = st.columns([9, 1])
|
| 204 |
with cc[0]:
|
|
|
|
| 211 |
toast_fn("Copied to clipboard")
|
| 212 |
else:
|
| 213 |
st.success("Copied to clipboard")
|
| 214 |
+
label = top_candidate.get("Prediction", "")
|
| 215 |
+
conf_str = format_conf_percent(top_candidate["predicted_confidence"], digits=1)
|
| 216 |
+
st.write(f"**{label} with {conf_str} confidence**")
|
| 217 |
st.write(f"Reason: {top_candidate['Reason']}")
|
| 218 |
|
| 219 |
st.divider()
|