Spaces:
Running
on
Zero
Running
on
Zero
Commit
•
42c0f75
1
Parent(s):
0c2d52a
fix text
Browse files
app.py
CHANGED
@@ -318,9 +318,11 @@ with gr.Blocks() as demo:
|
|
318 |
outputs=[progress_bar, plot, df_low, df_medium, df_high, texts_df]
|
319 |
)
|
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
|
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):
|
|
|
318 |
outputs=[progress_bar, plot, df_low, df_medium, df_high, texts_df]
|
319 |
)
|
320 |
|
321 |
+
gr.Markdown("""## Explore toxicity
|
322 |
+
Run [Perspective](https://perspectiveapi.com/how-it-works/) on 100 random samples to check toxicity
|
323 |
+
""")
|
324 |
# checkbox = gr.Checkbox(value=False, label="Run on full first parquet data (better not)")
|
325 |
+
gr_toxicity_btn = gr.Button("Run Perpspective API")
|
326 |
toxicity_progress_bar = gr.Label(show_label=False)
|
327 |
toxicity_hist = gr.Plot()
|
328 |
with gr.Accordion("Explore examples with toxicity scores:", open=False):
|