Spaces:
Sleeping
Sleeping
update button icons
Browse files- pages/Ranking.py +3 -3
pages/Ranking.py
CHANGED
@@ -144,12 +144,12 @@ class RankingApp:
|
|
144 |
# st.write(str(st.session_state.ranking))
|
145 |
with control:
|
146 |
if st.session_state.counter[prompt_id] < batch_num - 1:
|
147 |
-
st.button(":arrow_right:", key='next', on_click=self.next_batch, help='Next Batch', kwargs={'prompt_id': prompt_id})
|
148 |
else:
|
149 |
-
st.button(":
|
150 |
|
151 |
if st.session_state.counter[prompt_id] > 0:
|
152 |
-
st.button(":arrow_left:", key='prev', on_click=self.prev_batch, help='Previous Batch', kwargs={'prompt_id': prompt_id})
|
153 |
|
154 |
elif st.session_state.progress[prompt_id] == 'finished':
|
155 |
st.write('## You have ranked all models for this tag!')
|
|
|
144 |
# st.write(str(st.session_state.ranking))
|
145 |
with control:
|
146 |
if st.session_state.counter[prompt_id] < batch_num - 1:
|
147 |
+
st.button(":arrow_right:", key='next', on_click=self.next_batch, help='Next Batch', kwargs={'prompt_id': prompt_id}, use_container_width=True)
|
148 |
else:
|
149 |
+
st.button(":heavy_check_mark:", key='finished', on_click=self.next_batch, help='Finished', kwargs={'prompt_id': prompt_id, 'progress': 'finished'}, use_container_width=True)
|
150 |
|
151 |
if st.session_state.counter[prompt_id] > 0:
|
152 |
+
st.button(":arrow_left:", key='prev', on_click=self.prev_batch, help='Previous Batch', kwargs={'prompt_id': prompt_id}, use_container_width=True)
|
153 |
|
154 |
elif st.session_state.progress[prompt_id] == 'finished':
|
155 |
st.write('## You have ranked all models for this tag!')
|