ervau commited on
Commit
e8c701e
·
1 Parent(s): eb75910

show selected proteins when using example query

Browse files
Files changed (1) hide show
  1. ProtHGT_app.py +16 -0
ProtHGT_app.py CHANGED
@@ -106,6 +106,22 @@ with st.sidebar:
106
 
107
  if selection_method == "Use example query":
108
  selected_proteins = st.session_state.example_proteins
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
109
 
110
  elif selection_method == "Search proteins":
111
 
 
106
 
107
  if selection_method == "Use example query":
108
  selected_proteins = st.session_state.example_proteins
109
+ st.write(f"Selected proteins:")
110
+ st.markdown(
111
+ f"""
112
+ <div style="
113
+ height: 150px;
114
+ overflow-y: scroll;
115
+ border: 1px solid #ccc;
116
+ border-radius: 4px;
117
+ padding: 8px;
118
+ margin-bottom: 16px;
119
+ background-color: white;">
120
+ {'<br>'.join(selected_proteins)}
121
+ </div>
122
+ """,
123
+ unsafe_allow_html=True
124
+ )
125
 
126
  elif selection_method == "Search proteins":
127