Ricercar commited on
Commit
a145573
·
1 Parent(s): 48bb321

gallery page length fixed with a chat_input

Browse files
Files changed (1) hide show
  1. pages/Gallery.py +3 -1
pages/Gallery.py CHANGED
@@ -276,7 +276,9 @@ class GalleryApp:
276
  with st.spinner('Loading images...'):
277
  self.gallery_standard(items, col_num, info)
278
 
279
- prompt = st.chat_input(f"checked: {str(st.session_state.selected_dict.get(prompt_id, []))}", disabled=True, key=f'{prompt_id}')
 
 
280
 
281
  def submit_actions(self, status, prompt_id):
282
  if status == 'Select':
 
276
  with st.spinner('Loading images...'):
277
  self.gallery_standard(items, col_num, info)
278
 
279
+ prompt = st.chat_input(f"checked: {str(st.session_state.selected_dict.get(prompt_id, []))}", disabled=False, key=f'{prompt_id}')
280
+ if prompt:
281
+ switch_page("ranking")
282
 
283
  def submit_actions(self, status, prompt_id):
284
  if status == 'Select':