Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import streamlit as st
|
2 |
from transformers import pipeline
|
3 |
|
4 |
-
sentiment_pipeline = pipeline("sentiment-analysis")
|
5 |
|
6 |
st.title("Sentiment Analysis with HuggingFace Spaces")
|
7 |
st.write("this is a text")
|
|
|
1 |
import streamlit as st
|
2 |
from transformers import pipeline
|
3 |
|
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")
|