Spaces:
Runtime error
Runtime error
Tristan Thrush
commited on
Commit
•
5ebeff4
1
Parent(s):
d7af059
added feature to set url based on dataset selection, not just get dataset selection based on url
Browse files
app.py
CHANGED
@@ -53,7 +53,10 @@ if "dataset" in query_params:
|
|
53 |
dataset_name = st.selectbox(
|
54 |
"Select a dataset",
|
55 |
selectable_datasets,
|
56 |
-
index=selectable_datasets.index(default_dataset)
|
|
|
|
|
|
|
57 |
|
58 |
# TODO: remove this step once we select real datasets
|
59 |
# Strip out original dataset name
|
|
|
53 |
dataset_name = st.selectbox(
|
54 |
"Select a dataset",
|
55 |
selectable_datasets,
|
56 |
+
index=selectable_datasets.index(default_dataset)
|
57 |
+
)
|
58 |
+
|
59 |
+
st.experimental_set_query_params(**{"dataset": [dataset]})
|
60 |
|
61 |
# TODO: remove this step once we select real datasets
|
62 |
# Strip out original dataset name
|