Spaces:
Runtime error
Runtime error
paul hilders
commited on
Commit
·
2a6b42b
1
Parent(s):
39c7251
Add better example
Browse files
app.py
CHANGED
|
@@ -121,17 +121,7 @@ outputs_NER = ["highlight", gr.Gallery(type='pil', label="NER Entity explanation
|
|
| 121 |
iface_NER = gr.Interface(fn=NER_demo,
|
| 122 |
inputs=inputs_NER,
|
| 123 |
outputs=outputs_NER,
|
| 124 |
-
examples=[["example_images/London.png", "London Eye"],
|
| 125 |
-
["example_images/London.png", "Big Ben"],
|
| 126 |
-
["example_images/harrypotter.png", "Harry"],
|
| 127 |
-
["example_images/harrypotter.png", "Hermione"],
|
| 128 |
-
["example_images/harrypotter.png", "Ron"],
|
| 129 |
-
["example_images/Amsterdam.png", "Amsterdam canal"],
|
| 130 |
-
["example_images/Amsterdam.png", "Old buildings"],
|
| 131 |
-
["example_images/Amsterdam.png", "Pink flowers"],
|
| 132 |
-
["example_images/dogs_on_bed.png", "Two dogs"],
|
| 133 |
-
["example_images/dogs_on_bed.png", "Book"],
|
| 134 |
-
["example_images/dogs_on_bed.png", "Cat"]],
|
| 135 |
cache_examples=False)
|
| 136 |
|
| 137 |
demo_tabs = gr.TabbedInterface([iface, iface_NER], ["Default", "NER"])
|
|
|
|
| 121 |
iface_NER = gr.Interface(fn=NER_demo,
|
| 122 |
inputs=inputs_NER,
|
| 123 |
outputs=outputs_NER,
|
| 124 |
+
examples=[["example_images/London.png", "In this image we see Big Ben and the London Eye, on both sides of the river Thames."]],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 125 |
cache_examples=False)
|
| 126 |
|
| 127 |
demo_tabs = gr.TabbedInterface([iface, iface_NER], ["Default", "NER"])
|