Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -2,13 +2,8 @@ from transformers import pipeline
|
|
2 |
import streamlit as st #Web App
|
3 |
|
4 |
#title
|
5 |
-
st.title("
|
6 |
-
|
7 |
-
#subtitle
|
8 |
-
st.markdown("## Optical Character Recognition - Using `easyocr`, `streamlit` - hosted on 🤗 Spaces")
|
9 |
-
|
10 |
-
st.markdown("Link to the app - [image-to-text-app on 🤗 Spaces](https://huggingface.co/spaces/Amrrs/image-to-text-app)")
|
11 |
|
12 |
sentiment_pipeline = pipeline("sentiment-analysis")
|
13 |
data = ["I love you", "I hate you"]
|
14 |
-
sentiment_pipeline(data)
|
|
|
2 |
import streamlit as st #Web App
|
3 |
|
4 |
#title
|
5 |
+
st.title("Text Sentiment Analysis")
|
|
|
|
|
|
|
|
|
|
|
6 |
|
7 |
sentiment_pipeline = pipeline("sentiment-analysis")
|
8 |
data = ["I love you", "I hate you"]
|
9 |
+
st.write(sentiment_pipeline(data))
|