Nazia Nafis commited on
Commit ·
9ef7f06
1
Parent(s): dd123fe
Update app.py
Browse files4 unmodified lines567891011121314154 unmodified linespipe = pipeline('sentiment-analysis')st.title("Sentiment Analysis")st.subheader("Which framework would you like to use for sentiment analysis? ")option = st.selectbox('Framework',('Transformers', 'TextBlob')) #option is stored in this variablest.subheader("Enter the text you want to analyze.")text = st.text_input('Enter text: ') #text is stored in this variableif option == 'Transformers':out = pipe(text)4 unmodified lines567891011121314154 unmodified linespipe = pipeline('sentiment-analysis')st.title("Sentiment Analysis")st.subheader("Which framework would you like to use for sentiment analysis?")option = st.selectbox('Choose Framework:',('Transformers', 'TextBlob')) # option is stored in this variablest.subheader("Enter the text you want to analyze")text = st.text_input('Enter text:') # text is stored in this variableif option == 'Transformers':out = pipe(text)
app.py+4-4