tomaarsen HF staff commited on
Commit
108708e
·
verified ·
1 Parent(s): 9e96a3b

Update used model

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -2,7 +2,7 @@ from typing import Dict, Union
2
  from gliner import GLiNER
3
  import gradio as gr
4
 
5
- model = GLiNER.from_pretrained("urchade/gliner_base")
6
 
7
  examples = [
8
  [
@@ -126,11 +126,11 @@ with gr.Blocks(title="GLiNER-base") as demo:
126
  """
127
  # GLiNER-base
128
 
129
- GLiNER is a Named Entity Recognition (NER) model capable of identifying any entity type using a bidirectional transformer encoder (BERT-like). It provides a practical alternative to traditional NER models, which are limited to predefined entities, and Large Language Models (LLMs) that, despite their flexibility, are costly and large for resource-constrained scenarios.
130
 
131
  ## Links
132
 
133
- * Model: https://huggingface.co/urchade/gliner_base
134
  * All GLiNER models: https://huggingface.co/models?library=gliner
135
  * Paper: https://arxiv.org/abs/2311.08526
136
  * Repository: https://github.com/urchade/GLiNER
 
2
  from gliner import GLiNER
3
  import gradio as gr
4
 
5
+ model = GLiNER.from_pretrained("urchade/gliner_medium-v2.1")
6
 
7
  examples = [
8
  [
 
126
  """
127
  # GLiNER-base
128
 
129
+ GLiNER is a Named Entity Recognition (NER) model capable of identifying any entity type using a bidirectional transformer encoder (BERT-like). It provides a practical alternative to traditional NER models, which are limited to predefined entities, and Large Language Models (LLMs) that, despite their flexibility, are costly and large for resource-constrained scenarios. This model has the commercially permissive Apache 2.0 license.
130
 
131
  ## Links
132
 
133
+ * Model: https://huggingface.co/urchade/gliner_medium-v2.1
134
  * All GLiNER models: https://huggingface.co/models?library=gliner
135
  * Paper: https://arxiv.org/abs/2311.08526
136
  * Repository: https://github.com/urchade/GLiNER