Eun0 commited on
Commit
90b7ac6
1 Parent(s): ec82f37

Add dataset

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -11,7 +11,7 @@ title = r"""
11
 
12
  description = r"""
13
 
14
- In this demo, we use [DiffusionDB](https://huggingface.co/datasets/poloclub/diffusiondb) instead of [LAION](https://laion.ai/blog/laion-400-open-dataset/) because LAION is currently not available.
15
  <br>
16
  This demo currently supports text search only.
17
  <br>
@@ -21,6 +21,7 @@ The code is based on [clip-retrieval](https://github.com/rom1504/clip-retrieval)
21
 
22
  """
23
 
 
24
  # From local file
25
  # INDEX_DIR = "dataset/diffusiondb/text_index_folder"
26
  # IND = faiss.read_index(f"{INDEX_DIR}/text.index")
@@ -105,7 +106,7 @@ with gr.Blocks() as demo:
105
  gr.Markdown(description)
106
 
107
  with gr.Row():
108
- dataset = gr.Dropdown(label="dataset", choices=["DiffusionDB"], value="DiffusionDB")
109
  top_k = gr.Slider(label="top k", minimum=1, maximum=20, value=8)
110
  show_score = gr.Checkbox(label="Show score", value=True)
111
  query_text = gr.Textbox(label="query text")
 
11
 
12
  description = r"""
13
 
14
+ In this demo, we use subset of [danbooru22](https://huggingface.co/datasets/animelover/danbooru2022) or [DiffusionDB](https://huggingface.co/datasets/poloclub/diffusiondb) instead of [LAION](https://laion.ai/blog/laion-400-open-dataset/) instead of [LAION](https://laion.ai/blog/laion-400-open-dataset/) because LAION is currently not available.
15
  <br>
16
  This demo currently supports text search only.
17
  <br>
 
21
 
22
  """
23
 
24
+ #In this demo, we use because LAION is currently not available.
25
  # From local file
26
  # INDEX_DIR = "dataset/diffusiondb/text_index_folder"
27
  # IND = faiss.read_index(f"{INDEX_DIR}/text.index")
 
106
  gr.Markdown(description)
107
 
108
  with gr.Row():
109
+ dataset = gr.Dropdown(label="dataset", choices=["booru22", "DiffusionDB"], value="DiffusionDB")
110
  top_k = gr.Slider(label="top k", minimum=1, maximum=20, value=8)
111
  show_score = gr.Checkbox(label="Show score", value=True)
112
  query_text = gr.Textbox(label="query text")