lhoestq HF staff commited on
Commit
381fd46
1 Parent(s): b558a54

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -87,7 +87,7 @@ def analyze_dataset(dataset: str, enabled_presidio_entities: list[str] = DEFAULT
87
  yield presidio_report(presidio_entities, next_row_idx=rows.next_idx, num_rows=num_rows), pd.DataFrame(presidio_entities)
88
  yield presidio_report(presidio_entities, next_row_idx=rows.next_idx, num_rows=num_rows), pd.DataFrame(presidio_entities)
89
 
90
- with gr.Blocks() as demo:
91
  gr.Markdown("# Scan datasets using Presidio")
92
  gr.Markdown("The space takes an HF dataset name as an input, and returns the list of entities detected by Presidio in the first samples.")
93
  inputs = [
 
87
  yield presidio_report(presidio_entities, next_row_idx=rows.next_idx, num_rows=num_rows), pd.DataFrame(presidio_entities)
88
  yield presidio_report(presidio_entities, next_row_idx=rows.next_idx, num_rows=num_rows), pd.DataFrame(presidio_entities)
89
 
90
+ with gr.Blocks(css=".table {border-collapse: separate}") as demo: # custom CSS to fix a bug with gr.DataFrame, see https://github.com/radames/gradio-custom-components/issues/1
91
  gr.Markdown("# Scan datasets using Presidio")
92
  gr.Markdown("The space takes an HF dataset name as an input, and returns the list of entities detected by Presidio in the first samples.")
93
  inputs = [