emvecchi commited on
Commit
816a7d7
1 Parent(s): ec9d229

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -571,9 +571,9 @@ def navigate_to_index():
571
  if go_to_index <= farthest_index:
572
  st.session_state.current_index = go_to_index
573
  else:
574
- st.info(f"You have not annotated up to instance #{st.session_state.go_to} yet. Your last annotated instance was #{farthest_index+1}.")
575
  else:
576
- st.info(f"{st.session_state.go_to} is not in the range of data.")
577
  except ValueError:
578
  st.error("The page number must be an integer.")
579
 
 
571
  if go_to_index <= farthest_index:
572
  st.session_state.current_index = go_to_index
573
  else:
574
+ st.info(f"You have not annotated up to instance #{int(st.session_state.go_to)} yet. \nYour last annotated instance was #{farthest_index+1}.")
575
  else:
576
+ st.info(f"{int(st.session_state.go_to)} is not in the range of data.")
577
  except ValueError:
578
  st.error("The page number must be an integer.")
579