Spaces:
Runtime error
Runtime error
acumplid
commited on
Commit
·
a984ff2
1
Parent(s):
49cb756
Included prompt example
Browse files
app.py
CHANGED
@@ -41,7 +41,7 @@ with gr.Blocks(**AinaGradioTheme().get_kwargs()) as demo:
|
|
41 |
gr.Markdown(
|
42 |
""" **Multiner** is a Named Entity Recognition (NER) model for the Catalan language fine-tuned from the [BERTa] model, a RoBERTa base model pre-trained on a medium-size corpus collected from publicly available corpora and crawlers (check the BERTa model card for more details).
|
43 |
It has been trained with a dataset (CEIL: Catalan Entity Identification and Linking ) that contains 9 main types and 52 subtypes on all kinds of short texts, with almost 59K documents.
|
44 |
-
This result has been driven and funded by the Government of Catalonia through the [Aina](https://projecteaina.cat/)
|
45 |
"""
|
46 |
)
|
47 |
|
@@ -77,6 +77,19 @@ with gr.Blocks(**AinaGradioTheme().get_kwargs()) as demo:
|
|
77 |
)
|
78 |
|
79 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
80 |
input_.change(
|
81 |
fn=check_max_characters,
|
82 |
inputs=[input_, placeholder_max_characters],
|
|
|
41 |
gr.Markdown(
|
42 |
""" **Multiner** is a Named Entity Recognition (NER) model for the Catalan language fine-tuned from the [BERTa] model, a RoBERTa base model pre-trained on a medium-size corpus collected from publicly available corpora and crawlers (check the BERTa model card for more details).
|
43 |
It has been trained with a dataset (CEIL: Catalan Entity Identification and Linking ) that contains 9 main types and 52 subtypes on all kinds of short texts, with almost 59K documents.
|
44 |
+
This result has been driven and funded by the Government of Catalonia through the [Aina](https://projecteaina.cat/).
|
45 |
"""
|
46 |
)
|
47 |
|
|
|
77 |
)
|
78 |
|
79 |
|
80 |
+
with gr.Row():
|
81 |
+
with gr.Column(scale=0.5):
|
82 |
+
gr.Examples(
|
83 |
+
label="Example:",
|
84 |
+
examples=[
|
85 |
+
["""El raper nord-americà Travis Scott ha gravat el videoclip de la seva canço 'Circus Maximus' amb els Castellers de Vilafranca. Segons ha publicat la 'Revista Castells' i ha confirmat l'Agència Catalana de Notícies (ACN), el rodatge es va fer el 2 de juliol a la Tarraco Arena Plaça (TAP) de Tarragona."""],
|
86 |
+
],
|
87 |
+
inputs=[input_],
|
88 |
+
outputs=output,
|
89 |
+
fn=submit_input,
|
90 |
+
)
|
91 |
+
|
92 |
+
|
93 |
input_.change(
|
94 |
fn=check_max_characters,
|
95 |
inputs=[input_, placeholder_max_characters],
|