Ricercar commited on
Commit
2d9947c
1 Parent(s): d063f18

update instructions

Browse files
Files changed (2) hide show
  1. pages/Ranking.py +1 -1
  2. pages/Summary.py +8 -2
pages/Ranking.py CHANGED
@@ -340,7 +340,7 @@ if __name__ == "__main__":
340
 
341
  if not has_selection:
342
  st.info('You have not checked any image yet. Please go back to the gallery page and check some images.')
343
- gallery_btn = st.button('Go to Gallery')
344
  if gallery_btn:
345
  switch_page('gallery')
346
  else:
 
340
 
341
  if not has_selection:
342
  st.info('You have not checked any image yet. Please go back to the gallery page and check some images.')
343
+ gallery_btn = st.button('🖼️ Go to Gallery')
344
  if gallery_btn:
345
  switch_page('gallery')
346
  else:
pages/Summary.py CHANGED
@@ -161,6 +161,12 @@ if __name__ == "__main__":
161
  if home_btn:
162
  switch_page("home")
163
 
 
 
 
 
 
 
164
  else:
165
  session_finished = []
166
 
@@ -170,10 +176,10 @@ if __name__ == "__main__":
170
 
171
  if len(session_finished) == 0:
172
  st.info('A dashboard showing your preferred models will appear after you finish any ranking session.')
173
- ranking_btn = st.button('🎖️ Back to Ranking')
174
  if ranking_btn:
175
  switch_page('ranking')
176
- gallery_btn = st.button('🖼️ Back to Gallery')
177
  if gallery_btn:
178
  switch_page('gallery')
179
 
 
161
  if home_btn:
162
  switch_page("home")
163
 
164
+ elif 'progress' not in st.session_state:
165
+ st.info('You have not checked any image yet. Please go back to the gallery page and check some images.')
166
+ gallery_btn = st.button('🖼️ Go to Gallery')
167
+ if gallery_btn:
168
+ switch_page('gallery')
169
+
170
  else:
171
  session_finished = []
172
 
 
176
 
177
  if len(session_finished) == 0:
178
  st.info('A dashboard showing your preferred models will appear after you finish any ranking session.')
179
+ ranking_btn = st.button('🎖️ Go to Ranking')
180
  if ranking_btn:
181
  switch_page('ranking')
182
+ gallery_btn = st.button('🖼️ Go to Gallery')
183
  if gallery_btn:
184
  switch_page('gallery')
185