Nazia Nafis
commited on
Commit
·
9ef7f06
1
Parent(s):
dd123fe
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,11 +5,11 @@ from textblob import TextBlob
|
|
| 5 |
pipe = pipeline('sentiment-analysis')
|
| 6 |
st.title("Sentiment Analysis")
|
| 7 |
|
| 8 |
-
st.subheader("Which framework would you like to use for sentiment analysis?
|
| 9 |
-
option = st.selectbox('Framework',('Transformers', 'TextBlob')) #option is stored in this variable
|
| 10 |
|
| 11 |
-
st.subheader("Enter the text you want to analyze
|
| 12 |
-
text = st.text_input('Enter text:
|
| 13 |
|
| 14 |
if option == 'Transformers':
|
| 15 |
out = pipe(text)
|
|
|
|
| 5 |
pipe = pipeline('sentiment-analysis')
|
| 6 |
st.title("Sentiment Analysis")
|
| 7 |
|
| 8 |
+
st.subheader("Which framework would you like to use for sentiment analysis?")
|
| 9 |
+
option = st.selectbox('Choose Framework:',('Transformers', 'TextBlob')) # option is stored in this variable
|
| 10 |
|
| 11 |
+
st.subheader("Enter the text you want to analyze")
|
| 12 |
+
text = st.text_input('Enter text:') # text is stored in this variable
|
| 13 |
|
| 14 |
if option == 'Transformers':
|
| 15 |
out = pipe(text)
|