Spaces:
Runtime error
Runtime error
Alexander Seifert
commited on
Commit
·
a9def1c
1
Parent(s):
bb162b6
remove next/prev example buttons for now
Browse files- src/subpages/inspect.py +6 -4
src/subpages/inspect.py
CHANGED
@@ -31,9 +31,11 @@ class InspectPage(Page):
|
|
31 |
# st.dataframe(colorize_classes(df).format(precision=3).bar(subset="losses")) # type: ignore
|
32 |
st.dataframe(colorize_classes(df.round(3).astype(str)))
|
33 |
|
34 |
-
if st.button("Next example"):
|
35 |
-
|
36 |
-
|
37 |
-
|
|
|
|
|
38 |
else:
|
39 |
aggrid_interactive_table(df.round(3))
|
|
|
31 |
# st.dataframe(colorize_classes(df).format(precision=3).bar(subset="losses")) # type: ignore
|
32 |
st.dataframe(colorize_classes(df.round(3).astype(str)))
|
33 |
|
34 |
+
# if st.button("➡️ Next example"):
|
35 |
+
# st.session_state.next_id = (ids.index(example_id) + 1) % len(ids)
|
36 |
+
# st.experimental_rerun()
|
37 |
+
# if st.button("⬅️ Previous example"):
|
38 |
+
# st.session_state.next_id = (ids.index(example_id) - 1) % len(ids)
|
39 |
+
# st.experimental_rerun()
|
40 |
else:
|
41 |
aggrid_interactive_table(df.round(3))
|