polinaeterna HF staff commited on
Commit
0c2d52a
β€’
1 Parent(s): 09f8ca5
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -211,7 +211,7 @@ with gr.Blocks() as demo:
211
  """
212
  # πŸ’« Dataset Quality Checker πŸ’«
213
  This space uses [NVIDIA's quality classifier model](https://huggingface.co/nvidia/quality-classifier-deberta)
214
- on a subset of any text dataset on the Hub to give a quick glance on the quality of samples.
215
  ## Select dataset and text column
216
  """
217
  )
@@ -239,7 +239,7 @@ with gr.Blocks() as demo:
239
  """
240
  return gr.HTML(value=html_code)
241
 
242
- text_column_dropdown = gr.Dropdown(label="Text column name", info="Text colum name to check (only non-nested texts are supported)")
243
 
244
  def _resolve_dataset_selection(dataset: str, default_subset: str, default_split: str):
245
  if "/" not in dataset.strip().strip("/"):
@@ -320,7 +320,7 @@ with gr.Blocks() as demo:
320
 
321
  gr.Markdown("## Explore toxicity")
322
  # checkbox = gr.Checkbox(value=False, label="Run on full first parquet data (better not)")
323
- gr_toxicity_btn = gr.Button("Run perpspective API to check toxicity of random samples.")
324
  toxicity_progress_bar = gr.Label(show_label=False)
325
  toxicity_hist = gr.Plot()
326
  with gr.Accordion("Explore examples with toxicity scores:", open=False):
 
211
  """
212
  # πŸ’« Dataset Quality Checker πŸ’«
213
  This space uses [NVIDIA's quality classifier model](https://huggingface.co/nvidia/quality-classifier-deberta)
214
+ on a subset of any text dataset on the Hub to give a quick glance on the quality of texts.
215
  ## Select dataset and text column
216
  """
217
  )
 
239
  """
240
  return gr.HTML(value=html_code)
241
 
242
+ text_column_dropdown = gr.Dropdown(label="Text column name", info="Text colum name to check. ")
243
 
244
  def _resolve_dataset_selection(dataset: str, default_subset: str, default_split: str):
245
  if "/" not in dataset.strip().strip("/"):
 
320
 
321
  gr.Markdown("## Explore toxicity")
322
  # checkbox = gr.Checkbox(value=False, label="Run on full first parquet data (better not)")
323
+ gr_toxicity_btn = gr.Button("Run perpspective API to check toxicity of 100 random samples.")
324
  toxicity_progress_bar = gr.Label(show_label=False)
325
  toxicity_hist = gr.Plot()
326
  with gr.Accordion("Explore examples with toxicity scores:", open=False):