CyberFox commited on
Commit
acfb4d1
·
1 Parent(s): 979b178

Canonical: https://wordlift.io/entity-extraction/ (rel=canonical in the app head, links in the description and README)

Browse files
Files changed (2) hide show
  1. README.md +2 -0
  2. app.py +11 -0
README.md CHANGED
@@ -25,3 +25,5 @@ With our intelligent solution powered by **GLiNER** and **BGE-M3**, you can anal
25
  This powerful combination helps search engines like Google better understand your content and rank it higher in search results. But that's not all! With precise entity disambiguation, our tool distinguishes between entities that share the same name, ensuring accurate knowledge graph connections that amplify your SEO benefits.
26
 
27
  **Supported languages:** English 🇬🇧 · Italian 🇮🇹 · French 🇫🇷 · German 🇩🇪 · Spanish 🇪🇸 · Portuguese 🇵🇹
 
 
 
25
  This powerful combination helps search engines like Google better understand your content and rank it higher in search results. But that's not all! With precise entity disambiguation, our tool distinguishes between entities that share the same name, ensuring accurate knowledge graph connections that amplify your SEO benefits.
26
 
27
  **Supported languages:** English 🇬🇧 · Italian 🇮🇹 · French 🇫🇷 · German 🇩🇪 · Spanish 🇪🇸 · Portuguese 🇵🇹
28
+
29
+ This demo is embedded at **[wordlift.io/entity-extraction](https://wordlift.io/entity-extraction/)**, the canonical page for it.
app.py CHANGED
@@ -456,6 +456,10 @@ DESCRIPTION = """
456
  ✓ = confident link (score ≥ 0.7, the reranker's own match probability) •
457
  ? = weak link, shown but not to be trusted
458
  </p>
 
 
 
 
459
  </div>
460
  """
461
 
@@ -479,9 +483,16 @@ EXAMPLES_URL = [
479
  ]
480
 
481
 
 
 
 
 
 
 
482
  with gr.Blocks(
483
  title="Content Analysis v3 — WordLift",
484
  css=CUSTOM_CSS,
 
485
  theme=gr.themes.Soft(
486
  primary_hue="indigo",
487
  secondary_hue="slate",
 
456
  ✓ = confident link (score ≥ 0.7, the reranker's own match probability) •
457
  ? = weak link, shown but not to be trusted
458
  </p>
459
+ <p style="color: #64748b; font-size: 0.8em; margin-top: 4px;">
460
+ Also available at <a href="https://wordlift.io/entity-extraction/" style="color: #4f46e5;">wordlift.io/entity-extraction</a> •
461
+ model: <a href="https://huggingface.co/WordLift/bge-reranker-v2-m3-entity-linking-v4" style="color: #4f46e5;">WordLift/bge-reranker-v2-m3-entity-linking-v4</a>
462
+ </p>
463
  </div>
464
  """
465
 
 
483
  ]
484
 
485
 
486
+ # The demo is embedded at https://wordlift.io/entity-extraction/ — that page is
487
+ # the canonical one, so the Space's own HTML says so and Google does not treat
488
+ # the hf.space copy as a competing page.
489
+ CANONICAL_URL = "https://wordlift.io/entity-extraction/"
490
+ CANONICAL_HEAD = f'<link rel="canonical" href="{CANONICAL_URL}">'
491
+
492
  with gr.Blocks(
493
  title="Content Analysis v3 — WordLift",
494
  css=CUSTOM_CSS,
495
+ head=CANONICAL_HEAD,
496
  theme=gr.themes.Soft(
497
  primary_hue="indigo",
498
  secondary_hue="slate",