Spaces:
Sleeping
Sleeping
add example to app
Browse files
app.py
CHANGED
@@ -58,7 +58,10 @@ def highlight_text(fileObj):
|
|
58 |
|
59 |
return {"text": text, "entities": entities}
|
60 |
|
61 |
-
|
62 |
-
|
63 |
-
|
|
|
|
|
|
|
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()
|