pelinbalci commited on
Commit
04b3685
·
1 Parent(s): abc3ca5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -1
app.py CHANGED
@@ -36,7 +36,19 @@ if file is not None:
36
  reader = easyocr.Reader(['tr','en'], gpu=False)
37
  result = reader.readtext(np.array(image)) # turn image to numpy array
38
 
39
- # collect the results in dictionary:
 
 
 
 
 
 
 
 
 
 
 
 
40
  textdic_easyocr = {}
41
  for idx in range(len(result)):
42
  pred_coor = result[idx][0]
 
36
  reader = easyocr.Reader(['tr','en'], gpu=False)
37
  result = reader.readtext(np.array(image)) # turn image to numpy array
38
 
39
+ # Add a placeholder
40
+ # latest_iteration = st.empty()
41
+ # bar = st.progress(0)
42
+
43
+ # for i in range(100):
44
+ # Update the progress bar with each iteration.
45
+ # latest_iteration.text(f'Iteration {i+1}')
46
+ # bar.progress(i + 1)
47
+ # time.sleep(0.1)
48
+
49
+ st.spinner(text="In progress...")
50
+
51
+ # collect the results in the dictionary:
52
  textdic_easyocr = {}
53
  for idx in range(len(result)):
54
  pred_coor = result[idx][0]