sitammeur commited on
Commit
ca73ba7
·
verified ·
1 Parent(s): cc650ad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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/deberta-v3-large-zeroshot-v2.0"
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 DeBERTa-v3-large-zeroshot 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/deberta-v3-large-zeroshot-v2.0' target='_blank'>Model Page</a></p>"
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