Spaces:
Sleeping
Sleeping
more eamples
Browse files
app.py
CHANGED
@@ -54,7 +54,7 @@ def analyze_dataset(dataset: str) -> pd.DataFrame:
|
|
54 |
):
|
55 |
presidio_entities.append(presidio_entity)
|
56 |
yield f"βοΈ Scanning {dataset} [{rows.next_idx}/{num_rows} rows]:", pd.DataFrame(presidio_entities)
|
57 |
-
yield f"β
Scanning {dataset} [{rows.next_idx}/{num_rows}rows]:", pd.DataFrame(presidio_entities)
|
58 |
|
59 |
with gr.Blocks() as demo:
|
60 |
gr.Markdown("# Scan datasets using Presidio")
|
@@ -72,6 +72,12 @@ with gr.Blocks() as demo:
|
|
72 |
gr.DataFrame(),
|
73 |
]
|
74 |
button.click(analyze_dataset, inputs, outputs)
|
75 |
-
gr.Examples(
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
|
77 |
demo.launch()
|
|
|
54 |
):
|
55 |
presidio_entities.append(presidio_entity)
|
56 |
yield f"βοΈ Scanning {dataset} [{rows.next_idx}/{num_rows} rows]:", pd.DataFrame(presidio_entities)
|
57 |
+
yield f"β
Scanning {dataset} [{rows.next_idx}/{num_rows} rows]:", pd.DataFrame(presidio_entities)
|
58 |
|
59 |
with gr.Blocks() as demo:
|
60 |
gr.Markdown("# Scan datasets using Presidio")
|
|
|
72 |
gr.DataFrame(),
|
73 |
]
|
74 |
button.click(analyze_dataset, inputs, outputs)
|
75 |
+
gr.Examples(
|
76 |
+
[["microsoft/orca-math-word-problems-200k"], ["tatsu-lab/alpaca"], ["Anthropic/hh-rlhf"], ["OpenAssistant/oasst1"], ["sidhq/email-thread-summary"], ["lhoestq/fake_name_and_ssn"]],
|
77 |
+
inputs,
|
78 |
+
outputs,
|
79 |
+
fn=analyze_dataset,
|
80 |
+
run_on_click=True
|
81 |
+
)
|
82 |
|
83 |
demo.launch()
|