rayl-aoit commited on
Commit
7ec88b0
·
verified ·
1 Parent(s): 48a7b74

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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(share=True)
 
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()