Spaces:
Running
Running
Update app.py
Browse files
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.
|
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 |
|