updated path
Browse files
app.py
CHANGED
@@ -36,7 +36,7 @@ tab1, tab2 = st.tabs(["Demo","Application"])
|
|
36 |
with tab1:
|
37 |
# Handle first image
|
38 |
|
39 |
-
url = "https://
|
40 |
|
41 |
st.subheader("OCR an image demo")
|
42 |
img_description = st.text('Image text will extracted using OCR.')
|
@@ -63,7 +63,7 @@ with tab1:
|
|
63 |
with tab2:
|
64 |
st.subheader("OCR an image app")
|
65 |
img_description = st.text('Image text will be extracted using OCR.')
|
66 |
-
uploaded_file = st.file_uploader("Upload a image to OCR.", type=['jpg'])
|
67 |
|
68 |
if uploaded_file is not None:
|
69 |
img = Image.open(uploaded_file)
|
|
|
36 |
with tab1:
|
37 |
# Handle first image
|
38 |
|
39 |
+
url = " https://raw.githubusercontent.com/webdevserv/image2OCR/main/images/ocr.jpg"
|
40 |
|
41 |
st.subheader("OCR an image demo")
|
42 |
img_description = st.text('Image text will extracted using OCR.')
|
|
|
63 |
with tab2:
|
64 |
st.subheader("OCR an image app")
|
65 |
img_description = st.text('Image text will be extracted using OCR.')
|
66 |
+
uploaded_file = st.file_uploader("Upload a image to OCR.", type=['jpg','gif','png','jpeg'])
|
67 |
|
68 |
if uploaded_file is not None:
|
69 |
img = Image.open(uploaded_file)
|