jbroermann commited on
Commit
45a1d9f
·
1 Parent(s): fdb13df

Added examples.

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -15,7 +15,13 @@ def run_pipeline(input_text):
15
  iface = gr.Interface(
16
  fn=run_pipeline,
17
  inputs=gr.Textbox(label="Input"),
18
- outputs=gr.HighlightedText(label="Predicted Entities")
 
 
 
 
 
 
19
  )
20
 
21
  iface.launch()
 
15
  iface = gr.Interface(
16
  fn=run_pipeline,
17
  inputs=gr.Textbox(label="Input"),
18
+ outputs=gr.HighlightedText(label="Predicted Personal Information"),
19
+ examples=[
20
+ "R. Völler, der in Hanau geboren wurde, war vom 18. Januar 2005 bis zum 1. Juli 2018 Sportdirektor von Bayer 04 Leverkusen, bevor Aufgaben in der Bayer 04 Leverkusen Fußball GmbH an der Seite von Fernando Carro übernahm.",
21
+ "Der CEO der Volkswagen AG ist seit dem 01.09.2022 Oliver Blume, der unter anderem in Braunschweig studiert hat."
22
+ ],
23
+ title="Identifying Personal Information in German Texts",
24
+ description="Using the [bert-mapa-german model](https://huggingface.co/jbroermann/bert-mapa-german) to identify personal information in German texts. The [bert-mapa-german model](https://huggingface.co/jbroermann/bert-mapa-german) is a fine-tuned version of google-bert/bert-base-german-cased on the MAPA german dataset. Try one of the examples below or write your own German text."
25
  )
26
 
27
  iface.launch()