Spaces:
Running
on
Zero
Running
on
Zero
Commit
β’
0c2d52a
1
Parent(s):
09f8ca5
fix text
Browse files
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
|
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
|
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):
|