BaoLocTown commited on
Commit
4a43f2f
·
1 Parent(s): bbf619c

[ADD] models

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -4,10 +4,12 @@ import gradio as gr
4
 
5
  # Available models
6
  AVAILABLE_MODELS = {
7
- "BaoLocTown/gliner-vn-demo": "BaoLocTown/gliner-vn-demo",
8
  "nvidia/gliner-PII": "nvidia/gliner-PII",
9
  "urchade/gliner_multi_pii-v1": "urchade/gliner_multi_pii-v1",
 
10
  "BaoLocTown/gliner-bi-large-v1.0-tuned-v3-50k": "BaoLocTown/gliner-bi-large-v1.0-tuned-v3-50k",
 
 
11
  }
12
 
13
  # Cache for loaded models
@@ -74,10 +76,10 @@ def ner(
74
  }
75
 
76
 
77
- with gr.Blocks(title="GLiNER-M-v2.1") as demo:
78
  gr.Markdown(
79
  """
80
- # GLiNER-PII (Personnally Identifiable Information extraction)
81
 
82
  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.
83
 
@@ -85,8 +87,7 @@ with gr.Blocks(title="GLiNER-M-v2.1") as demo:
85
 
86
  ## Links
87
 
88
- * Model: https://huggingface.co/urchade/gliner_multi_pii-v1
89
- * All GLiNER models: https://huggingface.co/models?library=gliner
90
  * Paper: https://arxiv.org/abs/2311.08526
91
  * Repository: https://github.com/urchade/GLiNER
92
  """
 
4
 
5
  # Available models
6
  AVAILABLE_MODELS = {
 
7
  "nvidia/gliner-PII": "nvidia/gliner-PII",
8
  "urchade/gliner_multi_pii-v1": "urchade/gliner_multi_pii-v1",
9
+ "BaoLocTown/gliner-vn-demo": "BaoLocTown/gliner-vn-demo",
10
  "BaoLocTown/gliner-bi-large-v1.0-tuned-v3-50k": "BaoLocTown/gliner-bi-large-v1.0-tuned-v3-50k",
11
+ "BaoLocTown/gliner_multi_pii-v1-tuned-v4-50k-remapping-all": "BaoLocTown/gliner_multi_pii-v1-tuned-v4-50k-remapping-all",
12
+ "BaoLocTown/gliner-bi-large-v1.0-tuned-v4-50k-remapping-all": "BaoLocTown/gliner-bi-large-v1.0-tuned-v4-50k-remapping-all",
13
  }
14
 
15
  # Cache for loaded models
 
76
  }
77
 
78
 
79
+ with gr.Blocks(title="VN-GLiNER") as demo:
80
  gr.Markdown(
81
  """
82
+ # VN-GLiNER (Vietnamese Named Entity Recognition)
83
 
84
  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.
85
 
 
87
 
88
  ## Links
89
 
90
+ * All VN-GLiNER models: https://huggingface.co/collections/BaoLocTown/vn-gliner
 
91
  * Paper: https://arxiv.org/abs/2311.08526
92
  * Repository: https://github.com/urchade/GLiNER
93
  """