Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,9 @@ def load_model():
|
|
12 |
|
13 |
def text(image):
|
14 |
reader = load_model() #load model
|
|
|
15 |
input_image = Image.open(image) #read image
|
|
|
16 |
result = reader.readtext(np.array(input_image))
|
17 |
result_text = [] #empty list for results
|
18 |
for text in result:
|
|
|
12 |
|
13 |
def text(image):
|
14 |
reader = load_model() #load model
|
15 |
+
print("Model Load")
|
16 |
input_image = Image.open(image) #read image
|
17 |
+
print("image read")
|
18 |
result = reader.readtext(np.array(input_image))
|
19 |
result_text = [] #empty list for results
|
20 |
for text in result:
|