Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ from transformers import pipeline
|
|
| 5 |
|
| 6 |
# Load the zero-shot classification model
|
| 7 |
classifier = pipeline(
|
| 8 |
-
"zero-shot-classification", model="MoritzLaurer/
|
| 9 |
)
|
| 10 |
|
| 11 |
|
|
@@ -42,8 +42,8 @@ examples = [
|
|
| 42 |
|
| 43 |
# Title and description and article for the interface
|
| 44 |
title = "Zero Shot Text Classification"
|
| 45 |
-
description = "Classify text using zero-shot classification with
|
| 46 |
-
article = "<p style='text-align: center'><a href='https://arxiv.org/pdf/2312.17543.pdf' target='_blank'>Building Efficient Universal Classifiers with Natural Language Inference</a> | <a href='https://huggingface.co/MoritzLaurer/
|
| 47 |
|
| 48 |
|
| 49 |
# Launch the interface
|
|
|
|
| 5 |
|
| 6 |
# Load the zero-shot classification model
|
| 7 |
classifier = pipeline(
|
| 8 |
+
"zero-shot-classification", model="MoritzLaurer/ModernBERT-large-zeroshot-v2.0"
|
| 9 |
)
|
| 10 |
|
| 11 |
|
|
|
|
| 42 |
|
| 43 |
# Title and description and article for the interface
|
| 44 |
title = "Zero Shot Text Classification"
|
| 45 |
+
description = "Classify text using zero-shot classification with ModernBERT-large-zeroshot-v2.0 model! Provide a text input and a list of candidate labels separated by commas. Read more at the links below."
|
| 46 |
+
article = "<p style='text-align: center'><a href='https://arxiv.org/pdf/2312.17543.pdf' target='_blank'>Building Efficient Universal Classifiers with Natural Language Inference</a> | <a href='https://huggingface.co/MoritzLaurer/ModernBERT-large-zeroshot-v2.0' target='_blank'>Model Page</a></p>"
|
| 47 |
|
| 48 |
|
| 49 |
# Launch the interface
|