Ricercar commited on
Commit
40f8240
·
1 Parent(s): 2446c17

add state indicator

Browse files
Files changed (1) hide show
  1. pages/Gallery.py +4 -1
pages/Gallery.py CHANGED
@@ -14,6 +14,7 @@ from datasets import load_dataset, Dataset, load_from_disk
14
  from huggingface_hub import login
15
  from streamlit_agraph import agraph, Node, Edge, Config
16
  from streamlit_extras.switch_page_button import switch_page
 
17
  from streamlit_extras.no_default_selectbox import selectbox
18
  from sklearn.svm import LinearSVC
19
 
@@ -279,8 +280,10 @@ class GalleryApp:
279
  # return prompt_tags, tag, prompt_id, items
280
 
281
  def app(self):
282
- print(st.session_state.gallery_focus)
283
  st.write('### Model Visualization and Retrieval')
 
 
284
  # st.write('This is a gallery of images generated by the models')
285
 
286
  # build the tabular view
 
14
  from huggingface_hub import login
15
  from streamlit_agraph import agraph, Node, Edge, Config
16
  from streamlit_extras.switch_page_button import switch_page
17
+ from streamlit_extras.tags import tagger_component
18
  from streamlit_extras.no_default_selectbox import selectbox
19
  from sklearn.svm import LinearSVC
20
 
 
280
  # return prompt_tags, tag, prompt_id, items
281
 
282
  def app(self):
283
+ # print(st.session_state.gallery_focus)
284
  st.write('### Model Visualization and Retrieval')
285
+ with st.sidebar:
286
+ tagger_component('**Gallery State:**', [st.session_state.gallery_state.title()], color_name=['orange'])
287
  # st.write('This is a gallery of images generated by the models')
288
 
289
  # build the tabular view