asoria HF staff commited on
Commit
42a85d0
1 Parent(s): 39f0f76

adding sample dataset

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -154,10 +154,11 @@ def search(dataset_name, k):
154
  with gr.Blocks() as demo:
155
  gr.Markdown("# Search similar Datasets on Hugging Face")
156
  gr.Markdown("This space shows similar datasets based on a name and columns. It uses https://github.com/facebookresearch/faiss for vector indexing.")
157
- dataset_name = gr.Textbox("asoria/bolivian-population", label="Dataset Name")
158
- k = gr.Slider(5, 200, 20, step=5, interactive=True, label="K Nearest Neighbors")
 
159
  btn = gr.Button("Show similar datasets")
160
  df = gr.DataFrame(datatype="markdown")
161
  btn.click(search, inputs=[dataset_name, k], outputs=df)
162
-
163
  demo.launch()
 
154
  with gr.Blocks() as demo:
155
  gr.Markdown("# Search similar Datasets on Hugging Face")
156
  gr.Markdown("This space shows similar datasets based on a name and columns. It uses https://github.com/facebookresearch/faiss for vector indexing.")
157
+ gr.Markdown("'Text' column was used for indexing. Where text is a concatenation of 'dataset_name'-'column_names'")
158
+ dataset_name = gr.Textbox("sksayril/medicine-info", label="Dataset Name")
159
+ k = gr.Slider(5, 200, 20, step=5, interactive=True, label="Top K Nearest Neighbors")
160
  btn = gr.Button("Show similar datasets")
161
  df = gr.DataFrame(datatype="markdown")
162
  btn.click(search, inputs=[dataset_name, k], outputs=df)
163
+ gr.Markdown("This space was inspired by https://huggingface.co/spaces/davanstrien/dataset_column_search")
164
  demo.launch()