Spaces:
Sleeping
Sleeping
mehradans92
commited on
Commit
β’
409fff7
1
Parent(s):
53085dc
added app.py
Browse files
app.py
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import easyocr as ocr #OCR
|
2 |
+
import streamlit as st #Web App
|
3 |
+
from PIL import Image #Image Processing
|
4 |
+
import numpy as np #Image Processing
|
5 |
+
|
6 |
+
#title
|
7 |
+
st.title("Easy OCR - Extract Text from Images")
|
8 |
+
|
9 |
+
#subtitle
|
10 |
+
st.markdown("## Optical Character Recognition - Using `easyocr`, `streamlit` - hosted on π€ Spaces")
|
11 |
+
|
12 |
+
st.markdown("Link to the app - [image-to-text-app on π€ Spaces](https://huggingface.co/spaces/Amrrs/image-to-text-app)")
|
13 |
+
|
14 |
+
#image uploader
|
15 |
+
image = st.file_uploader(label = "Upload your image here",type=['png','jpg','jpeg'])
|