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