Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,10 +4,8 @@ from transformers import pipeline
|
|
4 |
sentiment_pipeline = pipeline("text-classification", model="kwang123/bert-sentiment-analysis")
|
5 |
|
6 |
st.title("Sentiment Analysis with HuggingFace Spaces")
|
7 |
-
st.write("this is a text")
|
8 |
|
9 |
user_input = st.text_input("")
|
10 |
-
otherinput = st.text_input("Enter text here")
|
11 |
if user_input:
|
12 |
result = sentiment_pipeline(user_input)
|
13 |
sentiment = result[0]["label"]
|
|
|
4 |
sentiment_pipeline = pipeline("text-classification", model="kwang123/bert-sentiment-analysis")
|
5 |
|
6 |
st.title("Sentiment Analysis with HuggingFace Spaces")
|
|
|
7 |
|
8 |
user_input = st.text_input("")
|
|
|
9 |
if user_input:
|
10 |
result = sentiment_pipeline(user_input)
|
11 |
sentiment = result[0]["label"]
|