Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -147,13 +147,13 @@ with playground:
|
|
147 |
gr.Examples(examples=[
|
148 |
"My name is Ray, I'm learning through Hugging Face and DeepLearning.AI and I live in Caversham, Reading",
|
149 |
"My name is Raymond, I work at A&O IT Group"
|
150 |
-
], inputs=ner_text_input)
|
151 |
|
152 |
with gr.Column():
|
153 |
ner_text_output = gr.HighlightedText(label="Text with entities")
|
154 |
|
155 |
-
ner_pipeline_button.click(ner, inputs=ner_text_input, outputs=ner_text_output)
|
156 |
|
157 |
create_playground_footer()
|
158 |
|
159 |
-
playground.launch(
|
|
|
147 |
gr.Examples(examples=[
|
148 |
"My name is Ray, I'm learning through Hugging Face and DeepLearning.AI and I live in Caversham, Reading",
|
149 |
"My name is Raymond, I work at A&O IT Group"
|
150 |
+
], inputs=[ner_text_input], outputs=[ner_text_output], run_on_click=True, cache_examples=True, fn=ner)
|
151 |
|
152 |
with gr.Column():
|
153 |
ner_text_output = gr.HighlightedText(label="Text with entities")
|
154 |
|
155 |
+
ner_pipeline_button.click(ner, inputs=[ner_text_input], outputs=[ner_text_output])
|
156 |
|
157 |
create_playground_footer()
|
158 |
|
159 |
+
playground.launch()
|