dang1812's picture
Create app.py
f893e57 unverified
raw
history blame
476 Bytes
from transformers import pipeline
import streamlit as st #Web App
#title
st.title("Easy OCR - Extract Text from Images")
#subtitle
st.markdown("## Optical Character Recognition - Using `easyocr`, `streamlit` - hosted on πŸ€— Spaces")
st.markdown("Link to the app - [image-to-text-app on πŸ€— Spaces](https://huggingface.co/spaces/Amrrs/image-to-text-app)")
sentiment_pipeline = pipeline("sentiment-analysis")
data = ["I love you", "I hate you"]
sentiment_pipeline(data)