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