lhoestq HF staff commited on
Commit
61c510a
β€’
1 Parent(s): f12f776

more eamples

Browse files
Files changed (1) hide show
  1. app.py +8 -2
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([["microsoft/orca-math-word-problems-200k"], ["tatsu-lab/alpaca"], ["Anthropic/hh-rlhf"], ["OpenAssistant/oasst1"]], inputs, outputs, fn=analyze_dataset, run_on_click=True)
 
 
 
 
 
 
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()