Spaces:
Sleeping
Sleeping
make height tall enough
Browse files
app.py
CHANGED
|
@@ -28,7 +28,7 @@ top_coexp_hits = datasets.load_dataset(
|
|
| 28 |
data_files = {"top_coexp_hits": "top_coexp_hits.tsv"})
|
| 29 |
top_coexp_hits = top_coexp_hits["top_coexp_hits"].to_pandas()
|
| 30 |
|
| 31 |
-
col1, col2 = st.columns(spec = [0.
|
| 32 |
with col1:
|
| 33 |
gene_id = st.text_input(
|
| 34 |
label = "Gene ID",
|
|
@@ -52,6 +52,8 @@ with col2:
|
|
| 52 |
file_name = f"top_coexp_hits_{gene_id}.tsv",
|
| 53 |
mime = "text/csv")
|
| 54 |
|
|
|
|
|
|
|
| 55 |
|
| 56 |
grid_option_builder = GridOptionsBuilder()
|
| 57 |
grid_option_builder.configure_default_column(
|
|
@@ -84,4 +86,5 @@ AgGrid(
|
|
| 84 |
data = top_coexp_hits,
|
| 85 |
gridOptions = grid_option_builder.build(),
|
| 86 |
fit_columns_on_grid_load=True,
|
|
|
|
| 87 |
theme="streamlit")
|
|
|
|
| 28 |
data_files = {"top_coexp_hits": "top_coexp_hits.tsv"})
|
| 29 |
top_coexp_hits = top_coexp_hits["top_coexp_hits"].to_pandas()
|
| 30 |
|
| 31 |
+
col1, col2, col3 = st.columns(spec = [0.3, 0.2, 0.5])
|
| 32 |
with col1:
|
| 33 |
gene_id = st.text_input(
|
| 34 |
label = "Gene ID",
|
|
|
|
| 52 |
file_name = f"top_coexp_hits_{gene_id}.tsv",
|
| 53 |
mime = "text/csv")
|
| 54 |
|
| 55 |
+
# third column is padding only
|
| 56 |
+
|
| 57 |
|
| 58 |
grid_option_builder = GridOptionsBuilder()
|
| 59 |
grid_option_builder.configure_default_column(
|
|
|
|
| 86 |
data = top_coexp_hits,
|
| 87 |
gridOptions = grid_option_builder.build(),
|
| 88 |
fit_columns_on_grid_load=True,
|
| 89 |
+
height = (1 + len(top_coexp_hits.index)) * 29,
|
| 90 |
theme="streamlit")
|