Use approved ModernBERT-CNN-Caption-Reranker name and loading example
Browse files
README.md
CHANGED
|
@@ -9,7 +9,7 @@ tags:
|
|
| 9 |
- text-classification
|
| 10 |
- custom-code
|
| 11 |
---
|
| 12 |
-
# ModernBERT-CNN
|
| 13 |
|
| 14 |
ModernBERT-base with a CNN head that scores the relatedness between **image-context
|
| 15 |
words and a candidate caption**. The output is a probability from 0 to 1. Use it
|
|
@@ -24,7 +24,7 @@ Install the dependencies from `requirements.txt`, then run:
|
|
| 24 |
from huggingface_hub import snapshot_download
|
| 25 |
import sys
|
| 26 |
|
| 27 |
-
path = snapshot_download("AhmedSSabir/
|
| 28 |
sys.path.insert(0, path)
|
| 29 |
from inference import RelatednessScorer
|
| 30 |
|
|
|
|
| 9 |
- text-classification
|
| 10 |
- custom-code
|
| 11 |
---
|
| 12 |
+
# ModernBERT-CNN Caption Reranker
|
| 13 |
|
| 14 |
ModernBERT-base with a CNN head that scores the relatedness between **image-context
|
| 15 |
words and a candidate caption**. The output is a probability from 0 to 1. Use it
|
|
|
|
| 24 |
from huggingface_hub import snapshot_download
|
| 25 |
import sys
|
| 26 |
|
| 27 |
+
path = snapshot_download("AhmedSSabir/ModernBERT-CNN-Caption-Reranker")
|
| 28 |
sys.path.insert(0, path)
|
| 29 |
from inference import RelatednessScorer
|
| 30 |
|