carblacac commited on
Commit
7442c2a
1 Parent(s): a40dc5a

add example to app

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -58,7 +58,10 @@ def highlight_text(fileObj):
58
 
59
  return {"text": text, "entities": entities}
60
 
61
- gr.Interface(highlight_text,
62
- gr.inputs.File(file_count="single", type="bytes"),
63
- gr.HighlightedText(),
 
 
 
64
  ).launch()
 
58
 
59
  return {"text": text, "entities": entities}
60
 
61
+ examples = ['Beiersdorf sees slower sales this year after bumper 2022 By Reuters.pdf']
62
+
63
+ gr.Interface(fn=highlight_text,
64
+ inputs=gr.inputs.File(file_count="single", type="bytes"),
65
+ outputs=gr.HighlightedText(),
66
+ examples=examples
67
  ).launch()