Ricercar commited on
Commit
fe1b9b6
·
1 Parent(s): bd4c718
Files changed (1) hide show
  1. pages/Gallery.py +5 -3
pages/Gallery.py CHANGED
@@ -246,9 +246,10 @@ class GalleryApp:
246
  with dynamic_weight_panel[i]:
247
  btn = st.button(method, use_container_width=True, disabled=btn_disable, on_click=self.dynamic_weight, args=(prompt_id, items, method))
248
 
249
- prompt = st.chat_input(f"Selected model version ids: {str(st.session_state.selected_dict.get(prompt_id, []))}", disabled=False, key=f'{prompt_id}')
250
- if prompt:
251
- switch_page("ranking")
 
252
 
253
  with st.form(key=f'{prompt_id}'):
254
  # buttons = st.columns([1, 1, 1])
@@ -277,6 +278,7 @@ class GalleryApp:
277
  with st.spinner('Loading images...'):
278
  self.gallery_standard(items, col_num, info)
279
 
 
280
  # prompt = st.chat_input(f"checked: {str(st.session_state.selected_dict.get(prompt_id, []))}", disabled=False, key=f'{prompt_id}')
281
  # if prompt:
282
  # switch_page("ranking")
 
246
  with dynamic_weight_panel[i]:
247
  btn = st.button(method, use_container_width=True, disabled=btn_disable, on_click=self.dynamic_weight, args=(prompt_id, items, method))
248
 
249
+ st.toast('This is a toast')
250
+ # prompt = st.chat_input(f"Selected model version ids: {str(st.session_state.selected_dict.get(prompt_id, []))}", disabled=False, key=f'{prompt_id}')
251
+ # if prompt:
252
+ # switch_page("ranking")
253
 
254
  with st.form(key=f'{prompt_id}'):
255
  # buttons = st.columns([1, 1, 1])
 
278
  with st.spinner('Loading images...'):
279
  self.gallery_standard(items, col_num, info)
280
 
281
+ st.info("Don't forget to scroll back to top and click the 'Confirm Selection' button to save your selection!!!")
282
  # prompt = st.chat_input(f"checked: {str(st.session_state.selected_dict.get(prompt_id, []))}", disabled=False, key=f'{prompt_id}')
283
  # if prompt:
284
  # switch_page("ranking")