Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -219,7 +219,7 @@ if img_file:
|
|
219 |
|
220 |
if button:
|
221 |
with st.spinner('Running OCR...'):
|
222 |
-
ocr_text = inference_nougat(img_file,
|
223 |
st.subheader(f"OCR Results for the PDF file")
|
224 |
st.write(ocr_text)
|
225 |
text_file = BytesIO(ocr_text.encode())
|
|
|
219 |
|
220 |
if button:
|
221 |
with st.spinner('Running OCR...'):
|
222 |
+
ocr_text = inference_nougat(img_file, "")
|
223 |
st.subheader(f"OCR Results for the PDF file")
|
224 |
st.write(ocr_text)
|
225 |
text_file = BytesIO(ocr_text.encode())
|