RoophaSharon commited on
Commit Β·
fef0152
1
Parent(s): 6d3eed6
Remove separate Facets JSON download button from viewer (facets remain in ZIP)
Browse files- views/viewer.py +1 -9
views/viewer.py
CHANGED
|
@@ -480,20 +480,12 @@ with st.expander("Build summary", expanded=False):
|
|
| 480 |
)
|
| 481 |
|
| 482 |
# ββ Downloads ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 483 |
-
d1, d2
|
| 484 |
with d1:
|
| 485 |
st.download_button("Hierarchy JSON", data=_read_bytes(str(hier_path)),
|
| 486 |
file_name=hier_path.name, mime="application/json",
|
| 487 |
width='stretch')
|
| 488 |
with d2:
|
| 489 |
-
if facet_path is not None and facet_path.exists():
|
| 490 |
-
st.download_button("Facets JSON", data=_read_bytes(str(facet_path)),
|
| 491 |
-
file_name=facet_path.name, mime="application/json",
|
| 492 |
-
width='stretch')
|
| 493 |
-
else:
|
| 494 |
-
st.button("Facets JSON", disabled=True, width='stretch',
|
| 495 |
-
help="This approach/dataset has no facet tree.")
|
| 496 |
-
with d3:
|
| 497 |
st.download_button("All outputs (ZIP)", data=_outputs_zip(str(ROOT)),
|
| 498 |
file_name="metadata_hierarchy_outputs.zip",
|
| 499 |
mime="application/zip", width='stretch')
|
|
|
|
| 480 |
)
|
| 481 |
|
| 482 |
# ββ Downloads ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 483 |
+
d1, d2 = st.columns(2)
|
| 484 |
with d1:
|
| 485 |
st.download_button("Hierarchy JSON", data=_read_bytes(str(hier_path)),
|
| 486 |
file_name=hier_path.name, mime="application/json",
|
| 487 |
width='stretch')
|
| 488 |
with d2:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 489 |
st.download_button("All outputs (ZIP)", data=_outputs_zip(str(ROOT)),
|
| 490 |
file_name="metadata_hierarchy_outputs.zip",
|
| 491 |
mime="application/zip", width='stretch')
|