Spaces:
Sleeping
Sleeping
deepsh2207
commited on
Commit
•
c962cf9
1
Parent(s):
0f9042b
changed model loading condition
Browse files
app.py
CHANGED
@@ -20,10 +20,12 @@ def load_model():
|
|
20 |
reader = ocr.Reader(['en'],model_storage_directory='.')
|
21 |
return reader
|
22 |
|
23 |
-
reader = load_model() #load model
|
24 |
|
25 |
if image is not None:
|
26 |
|
|
|
|
|
|
|
27 |
input_image = Image.open(image) #read image
|
28 |
st.image(input_image) #display image
|
29 |
|
|
|
20 |
reader = ocr.Reader(['en'],model_storage_directory='.')
|
21 |
return reader
|
22 |
|
|
|
23 |
|
24 |
if image is not None:
|
25 |
|
26 |
+
reader = load_model() #load model
|
27 |
+
|
28 |
+
|
29 |
input_image = Image.open(image) #read image
|
30 |
st.image(input_image) #display image
|
31 |
|