sitammeur commited on
Commit
62d782d
1 Parent(s): 3805905

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -2
app.py CHANGED
@@ -45,13 +45,20 @@ examples = [
45
  ["I am a professional basketball player", "sports, athlete, chef, politics"],
46
  ]
47
 
 
 
 
 
 
 
48
  # Launch the interface
49
  demo = gr.Interface(
50
  fn=ZeroShotTextClassification,
51
  inputs=[gr.Textbox(label="Input"), gr.Textbox(label="Candidate Labels")],
52
  outputs=gr.Label(label="Classification"),
53
- title="Zero Shot Text Classification",
54
- 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.",
 
55
  examples=examples,
56
  theme="Soft",
57
  allow_flagging="never",
 
45
  ["I am a professional basketball player", "sports, athlete, chef, politics"],
46
  ]
47
 
48
+ # Title and description and article for the interface
49
+ title = "Zero Shot Text Classification"
50
+ 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."
51
+ 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>"
52
+
53
+
54
  # Launch the interface
55
  demo = gr.Interface(
56
  fn=ZeroShotTextClassification,
57
  inputs=[gr.Textbox(label="Input"), gr.Textbox(label="Candidate Labels")],
58
  outputs=gr.Label(label="Classification"),
59
+ title=title,
60
+ description=description,
61
+ article=article,
62
  examples=examples,
63
  theme="Soft",
64
  allow_flagging="never",