Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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(
|
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__':
|