Update app.py
Browse files
app.py
CHANGED
@@ -12,10 +12,10 @@ from transformers import pipeline
|
|
12 |
|
13 |
classifier = pipeline("text-classification", model="j-hartmann/emotion-english-distilroberta-base")
|
14 |
def main():
|
15 |
-
st.title("
|
16 |
|
17 |
with st.form("text_field"):
|
18 |
-
text = st.text_area('enter
|
19 |
# clicked==True only when the button is clicked
|
20 |
clicked = st.form_submit_button("Submit")
|
21 |
if clicked:
|
|
|
12 |
|
13 |
classifier = pipeline("text-classification", model="j-hartmann/emotion-english-distilroberta-base")
|
14 |
def main():
|
15 |
+
st.title("Emotion(ENG) classification")
|
16 |
|
17 |
with st.form("text_field"):
|
18 |
+
text = st.text_area('enter your text:')
|
19 |
# clicked==True only when the button is clicked
|
20 |
clicked = st.form_submit_button("Submit")
|
21 |
if clicked:
|