gagan3012 commited on
Commit
8888000
·
1 Parent(s): 5cf7a29

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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, input_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())