rntc commited on
Commit
6b27c69
·
1 Parent(s): c1f3e63

change theme and update config

Browse files
Files changed (2) hide show
  1. README.md +6 -6
  2. app.py +2 -2
README.md CHANGED
@@ -1,13 +1,13 @@
1
  ---
2
- title: GLiNER-Multiv2.1
3
- emoji: 💻
4
- colorFrom: pink
5
- colorTo: blue
6
  sdk: gradio
7
  sdk_version: 4.20.1
8
  app_file: app.py
9
- pinned: false
10
- license: apache-2.0
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,