May222 commited on
Commit
b032e58
1 Parent(s): eb7c363

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -81,7 +81,7 @@ def main():
81
  st.sidebar.write("Please upload an image")
82
 
83
  else:
84
- with st.spinner('Loading model...'):
85
  if det_arch == 'pytesseract':
86
  predictor = pytesseract.image_to_string(doc)
87
  else:
@@ -93,7 +93,7 @@ def main():
93
  if det_arch == 'pytesseract':
94
  cols[1].text(predictor)
95
  else:
96
- cols[1].text(''.join(text))
97
 
98
 
99
  if __name__ == '__main__':
 
81
  st.sidebar.write("Please upload an image")
82
 
83
  else:
84
+ with st.spinner('Loading model...', print(type(doc))):
85
  if det_arch == 'pytesseract':
86
  predictor = pytesseract.image_to_string(doc)
87
  else:
 
93
  if det_arch == 'pytesseract':
94
  cols[1].text(predictor)
95
  else:
96
+ cols[1].text(''.join(predictor))
97
 
98
 
99
  if __name__ == '__main__':