Kuaaangwen commited on
Commit
5fb3458
·
1 Parent(s): 843aeb0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py CHANGED
@@ -3,3 +3,11 @@ import streamlit as st
3
  from transformers import pipeline
4
  from textblob import TextBlob
5
 
 
 
 
 
 
 
 
 
 
3
  from transformers import pipeline
4
  from textblob import TextBlob
5
 
6
+ pipe = pipeline('sentiment-analysis')
7
+ st.title("Hugging Face Sentiment Analysis Spaces Example")
8
+ st.subheader("What framework would you like to use for Sentiment Analysis")
9
+ #Picking what NLP task you want to do
10
+ option = st.selectbox('Framework',('Transformers', 'TextBlob')) #option is stored in this variable
11
+ #Textbox for text user is entering
12
+ st.subheader("Enter the text you'd like to analyze.")
13
+ text = st.text_input('Enter text') #text is stored in this variable