Datasets:
modified sidebar
Browse files
viewer.py
CHANGED
|
@@ -121,7 +121,6 @@ def main() -> None:
|
|
| 121 |
dataset_id = st.text_input("Dataset ID", "naos-ku/motif-qa", disabled=dataset_source != "Hugging Face Hub")
|
| 122 |
subset = st.selectbox("Subset", options=subsets, index=0)
|
| 123 |
split_choice = st.selectbox("Split", options=["train", "val", "test"], index=0)
|
| 124 |
-
layout_seed = st.number_input("Layout seed", min_value=0, value=42, step=1)
|
| 125 |
|
| 126 |
if dataset_source == "Local JSONL":
|
| 127 |
split_name = "val" if split_choice == "val" else split_choice
|
|
@@ -142,7 +141,14 @@ def main() -> None:
|
|
| 142 |
st.warning("No examples found for the selected configuration.")
|
| 143 |
return
|
| 144 |
|
| 145 |
-
sample_idx = st.sidebar.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 146 |
example = examples[sample_idx]
|
| 147 |
graph = _build_graph(example)
|
| 148 |
|
|
|
|
| 121 |
dataset_id = st.text_input("Dataset ID", "naos-ku/motif-qa", disabled=dataset_source != "Hugging Face Hub")
|
| 122 |
subset = st.selectbox("Subset", options=subsets, index=0)
|
| 123 |
split_choice = st.selectbox("Split", options=["train", "val", "test"], index=0)
|
|
|
|
| 124 |
|
| 125 |
if dataset_source == "Local JSONL":
|
| 126 |
split_name = "val" if split_choice == "val" else split_choice
|
|
|
|
| 141 |
st.warning("No examples found for the selected configuration.")
|
| 142 |
return
|
| 143 |
|
| 144 |
+
sample_idx = st.sidebar.number_input(
|
| 145 |
+
"Sample idx",
|
| 146 |
+
min_value=0,
|
| 147 |
+
max_value=len(examples) - 1,
|
| 148 |
+
value=0,
|
| 149 |
+
step=1,
|
| 150 |
+
)
|
| 151 |
+
layout_seed = st.sidebar.number_input("Layout seed", min_value=0, value=42, step=1)
|
| 152 |
example = examples[sample_idx]
|
| 153 |
graph = _build_graph(example)
|
| 154 |
|