deepanshu2207 commited on
Commit
2f4b113
1 Parent(s): 7ce4bd5

Added logs

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -25,18 +25,20 @@ reader = load_model() #load model
25
 
26
 
27
  if image is not None:
28
-
29
  input_image = Image.open(image) #read image
 
30
  st.image(input_image) #display image
 
31
 
32
  with st.spinner("🤖 AI is at Work! "):
33
-
34
-
35
  result = reader.readtext(np.array(input_image))
 
36
 
37
  result_text = [] #empty list for results
38
 
39
-
40
  for text in result:
41
  result_text.append(text[1])
42
 
 
25
 
26
 
27
  if image is not None:
28
+ print('1. Image Added')
29
  input_image = Image.open(image) #read image
30
+ print('2. Image Opened')
31
  st.image(input_image) #display image
32
+ print('3. Image Showed')
33
 
34
  with st.spinner("🤖 AI is at Work! "):
35
+ print(np.array(input_image))
 
36
  result = reader.readtext(np.array(input_image))
37
+ print('4. Image Text Read')
38
 
39
  result_text = [] #empty list for results
40
 
41
+ print(result)
42
  for text in result:
43
  result_text.append(text[1])
44