Spaces:
Running
Running
change theme and update config
Browse files
README.md
CHANGED
@@ -1,13 +1,13 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
-
emoji:
|
4 |
-
colorFrom:
|
5 |
-
colorTo:
|
6 |
sdk: gradio
|
7 |
sdk_version: 4.20.1
|
8 |
app_file: app.py
|
9 |
-
pinned:
|
10 |
-
license:
|
11 |
---
|
12 |
|
13 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
1 |
---
|
2 |
+
title: CamemBERT-bio-gliner
|
3 |
+
emoji: 🧑⚕️
|
4 |
+
colorFrom: yellow
|
5 |
+
colorTo: red
|
6 |
sdk: gradio
|
7 |
sdk_version: 4.20.1
|
8 |
app_file: app.py
|
9 |
+
pinned: true
|
10 |
+
license: MIT
|
11 |
---
|
12 |
|
13 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
app.py
CHANGED
@@ -59,7 +59,7 @@ def ner(
|
|
59 |
}
|
60 |
|
61 |
|
62 |
-
with gr.Blocks(title="CamemBERT-bio-gliner") as demo:
|
63 |
gr.Markdown(
|
64 |
"""
|
65 |
<img src="https://camembert-bio-model.fr/authors/camembert-bio/camembert-bio-ner-logo.png" alt="drawing" width="250"/>
|
@@ -151,7 +151,7 @@ râles crépitants => Symptômes
|
|
151 |
scale=0,
|
152 |
)
|
153 |
output = gr.HighlightedText(label="Predicted Entities")
|
154 |
-
submit_btn = gr.Button("Submit")
|
155 |
examples = gr.Examples(
|
156 |
examples,
|
157 |
fn=ner,
|
|
|
59 |
}
|
60 |
|
61 |
|
62 |
+
with gr.Blocks(title="CamemBERT-bio-gliner", theme=gr.themes.Soft()) as demo:
|
63 |
gr.Markdown(
|
64 |
"""
|
65 |
<img src="https://camembert-bio-model.fr/authors/camembert-bio/camembert-bio-ner-logo.png" alt="drawing" width="250"/>
|
|
|
151 |
scale=0,
|
152 |
)
|
153 |
output = gr.HighlightedText(label="Predicted Entities")
|
154 |
+
submit_btn = gr.Button("Submit", variant="primary", size="lg")
|
155 |
examples = gr.Examples(
|
156 |
examples,
|
157 |
fn=ner,
|