ola13 commited on
Commit
2cc82f7
β€’
1 Parent(s): e7386b4

dropdown values

Browse files
Files changed (2) hide show
  1. README.md +1 -1
  2. app.py +2 -2
README.md CHANGED
@@ -4,7 +4,7 @@ emoji: πŸŒ–
4
  colorFrom: blue
5
  colorTo: indigo
6
  sdk: gradio
7
- sdk_version: 3.18
8
  app_file: app.py
9
  pinned: false
10
  license: apache-2.0
 
4
  colorFrom: blue
5
  colorTo: indigo
6
  sdk: gradio
7
+ sdk_version: 3.18.0
8
  app_file: app.py
9
  pinned: false
10
  license: apache-2.0
app.py CHANGED
@@ -319,7 +319,7 @@ if __name__ == "__main__":
319
  available_datasets = gr.Dropdown(
320
  type="value",
321
  choices=[],
322
- value=None,
323
  label="Datasets",
324
  multiselect=True,
325
  )
@@ -346,7 +346,7 @@ if __name__ == "__main__":
346
  results: results_html,
347
  flagging_form: gr.update(visible=True),
348
  datasets_filter: gr.update(visible=True),
349
- available_datasets: gr.Dropdown.update(choices=datasets),
350
  }
351
 
352
  def filter_datasets():
 
319
  available_datasets = gr.Dropdown(
320
  type="value",
321
  choices=[],
322
+ value=[],
323
  label="Datasets",
324
  multiselect=True,
325
  )
 
346
  results: results_html,
347
  flagging_form: gr.update(visible=True),
348
  datasets_filter: gr.update(visible=True),
349
+ available_datasets: gr.Dropdown.update(choices=datasets, value=datasets),
350
  }
351
 
352
  def filter_datasets():