ahmadouna commited on
Commit
9b6f5f1
·
1 Parent(s): fbbacd8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -6,4 +6,6 @@ classifier = pipeline("zero-shot-classification",
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))
 
 
 
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
+ if text:
10
+
11
+ st.write(classifier(text, candidate_labels, hypothesis_template=hypothesis_template))