dawng88 commited on
Commit
e309f81
·
1 Parent(s): 47cdb11

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -2,7 +2,8 @@ import streamlit as st
2
  from transformers import pipeline
3
  from transformers import BertTokenizer
4
 
5
- text = st.text_area('enter some text:')
 
6
  classifier = pipeline("text-classification", model="j-hartmann/emotion-english-distilroberta-base", return_all_scores=True)
7
 
8
  if text:
 
2
  from transformers import pipeline
3
  from transformers import BertTokenizer
4
 
5
+ text1 = st.text_area('Sentiment Analysis Model - SacHacks2023')
6
+ text = st.text_area('Text to analyze:')
7
  classifier = pipeline("text-classification", model="j-hartmann/emotion-english-distilroberta-base", return_all_scores=True)
8
 
9
  if text: