nazneen commited on
Commit
6fc4f5a
·
1 Parent(s): 0f36fb3

interaction

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -32,7 +32,7 @@ def datasets_explorer_viz(df):
32
  TableColumn(field="task", title="Task"),
33
  TableColumn(field="dataset_id", title="Dataset ID"),
34
  ]
35
- data_table = DataTable(source=table_source, columns=columns, width=500)
36
  p.circle('x', 'y',source=selection_source, size=5, color= 'red')
37
  s.selected.js_on_change('indices', CustomJS(args=dict(umap_source=s, table_source=table_source), code="""
38
  const inds = cb_obj.indices;
@@ -89,5 +89,5 @@ if __name__ == "__main__":
89
  st.markdown("* Every dataset is emebdded using the [SPECTER](https://github.com/allenai/specter#advanced-training-your-own-model) embedding of its corresponding paper abstract.")
90
  st.markdown("* You can either search for a dataset or drag and select to peek into the cluster content.")
91
  datasets_df = pd.read_parquet('./assets/data/datasets_df.parquet')
92
- st.warning("Hugging Face 🤗 Datasets Explorer")
93
  datasets_explorer_viz(datasets_df)
 
32
  TableColumn(field="task", title="Task"),
33
  TableColumn(field="dataset_id", title="Dataset ID"),
34
  ]
35
+ data_table = DataTable(source=table_source, columns=columns, width=350)
36
  p.circle('x', 'y',source=selection_source, size=5, color= 'red')
37
  s.selected.js_on_change('indices', CustomJS(args=dict(umap_source=s, table_source=table_source), code="""
38
  const inds = cb_obj.indices;
 
89
  st.markdown("* Every dataset is emebdded using the [SPECTER](https://github.com/allenai/specter#advanced-training-your-own-model) embedding of its corresponding paper abstract.")
90
  st.markdown("* You can either search for a dataset or drag and select to peek into the cluster content.")
91
  datasets_df = pd.read_parquet('./assets/data/datasets_df.parquet')
92
+ st.warning("Hugging Face 🤗 Datasets Explorer")
93
  datasets_explorer_viz(datasets_df)