ahmadouna commited on
Commit
6026d9f
·
1 Parent(s): bae9954

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -4,6 +4,6 @@ from transformers import pipeline
4
  classifier = pipeline("zero-shot-classification",
5
  model="morit/french_xlm_xnli")
6
  text = st.text_input('Entrer le texte a analyser')
7
- andidate_labels = ["politique", "sport"]
8
- hypothesis_template = "Cet example est {}"
9
  st.write(classifier(text, candidate_labels, hypothesis_template=hypothesis_template))
 
4
  classifier = pipeline("zero-shot-classification",
5
  model="morit/french_xlm_xnli")
6
  text = st.text_input('Entrer le texte a analyser')
7
+ candidate_labels = ["commentaire positive", "commentaire negative"]
8
+ hypothesis_template = "Cet example estb un {}"
9
  st.write(classifier(text, candidate_labels, hypothesis_template=hypothesis_template))