Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -761,7 +761,7 @@ def create_interface():
|
|
| 761 |
4. **β¨ Add custom entities** (comma-separated) like "relationships, occupations, skills" - powered by GLiNER
|
| 762 |
5. **βοΈ Adjust confidence threshold**
|
| 763 |
6. **π Click "Analyse Text"** to see results with organized output
|
| 764 |
-
(
|
| 765 |
""")
|
| 766 |
# Add tip box
|
| 767 |
gr.HTML("""
|
|
@@ -796,8 +796,7 @@ def create_interface():
|
|
| 796 |
model_dropdown = gr.Dropdown(
|
| 797 |
choices=ner_manager.model_names,
|
| 798 |
value=ner_manager.model_names[0],
|
| 799 |
-
label="Select Model for Common Entities"
|
| 800 |
-
info="Choose which model to use for common NER"
|
| 801 |
)
|
| 802 |
|
| 803 |
# Common entities with select all functionality
|
|
@@ -932,7 +931,7 @@ def create_interface():
|
|
| 932 |
outputs=[summary_output, highlighted_output, results_output]
|
| 933 |
)
|
| 934 |
|
| 935 |
-
|
| 936 |
gr.Examples(
|
| 937 |
examples=[
|
| 938 |
[
|
|
@@ -963,7 +962,7 @@ def create_interface():
|
|
| 963 |
gr.HTML("""
|
| 964 |
<hr style="margin-top: 40px; margin-bottom: 20px;">
|
| 965 |
<div style="background-color: #f8f9fa; padding: 20px; border-radius: 8px; margin-top: 20px;">
|
| 966 |
-
<h4 style="margin-top: 0;">π Model Information & Documentation</h4>
|
| 967 |
<p style="font-size: 14px; margin-bottom: 15px;">Learn more about the models used in this tool:</p>
|
| 968 |
<ul style="font-size: 14px; line-height: 1.8;">
|
| 969 |
<li><strong>entities_flair_ner-large:</strong>
|
|
|
|
| 761 |
4. **β¨ Add custom entities** (comma-separated) like "relationships, occupations, skills" - powered by GLiNER
|
| 762 |
5. **βοΈ Adjust confidence threshold**
|
| 763 |
6. **π Click "Analyse Text"** to see results with organized output
|
| 764 |
+
(NB: common/custom entities which overlap are shown with split-colour highlighting)
|
| 765 |
""")
|
| 766 |
# Add tip box
|
| 767 |
gr.HTML("""
|
|
|
|
| 796 |
model_dropdown = gr.Dropdown(
|
| 797 |
choices=ner_manager.model_names,
|
| 798 |
value=ner_manager.model_names[0],
|
| 799 |
+
label="Select NER Model for Common Entities"
|
|
|
|
| 800 |
)
|
| 801 |
|
| 802 |
# Common entities with select all functionality
|
|
|
|
| 931 |
outputs=[summary_output, highlighted_output, results_output]
|
| 932 |
)
|
| 933 |
|
| 934 |
+
|
| 935 |
gr.Examples(
|
| 936 |
examples=[
|
| 937 |
[
|
|
|
|
| 962 |
gr.HTML("""
|
| 963 |
<hr style="margin-top: 40px; margin-bottom: 20px;">
|
| 964 |
<div style="background-color: #f8f9fa; padding: 20px; border-radius: 8px; margin-top: 20px;">
|
| 965 |
+
<h4 style="margin-top: 0;">π Model Information & Documentation (incl. details on usage terms)</h4>
|
| 966 |
<p style="font-size: 14px; margin-bottom: 15px;">Learn more about the models used in this tool:</p>
|
| 967 |
<ul style="font-size: 14px; line-height: 1.8;">
|
| 968 |
<li><strong>entities_flair_ner-large:</strong>
|