dawng88 commited on
Commit
178d48c
1 Parent(s): 3ee0a4b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -6
app.py CHANGED
@@ -3,9 +3,4 @@ from transformers import pipeline
3
 
4
  text = st.text_area('enter some text:')
5
  classifier = pipeline("text-classification", model="j-hartmann/emotion-english-distilroberta-base", return_all_scores=True)
6
- classifier(text)
7
-
8
-
9
- if text:
10
- out = classifer(text)
11
- st.json(out)
 
3
 
4
  text = st.text_area('enter some text:')
5
  classifier = pipeline("text-classification", model="j-hartmann/emotion-english-distilroberta-base", return_all_scores=True)
6
+ classifier(text)