Spaces:
Runtime error
Runtime error
Commit ·
b68eb56
1
Parent(s): ae9a0b1
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
from transformers import pipeline
|
| 3 |
from textblob import TextBlob
|
| 4 |
-
model_name=
|
| 5 |
-
pipe = pipeline(
|
| 6 |
st.title("Sentiment Analysis")
|
| 7 |
|
| 8 |
st.subheader("Which framework would you like to use for sentiment analysis?")
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
from transformers import pipeline
|
| 3 |
from textblob import TextBlob
|
| 4 |
+
model_name ="finiteautomata/bertweet-base-sentiment-analysis"
|
| 5 |
+
pipe = pipeline("sentiment-analysis")
|
| 6 |
st.title("Sentiment Analysis")
|
| 7 |
|
| 8 |
st.subheader("Which framework would you like to use for sentiment analysis?")
|