awacke1 commited on
Commit
aa54183
·
verified ·
1 Parent(s): 4cb8044

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -446,7 +446,7 @@ with tab_ocr:
446
  doc.close()
447
  st.image(image, caption="Input Image", use_container_width=True)
448
  if st.button("Run OCR 🚀", key="ocr_run"):
449
- output_file = generate_filename("ocr_output", "txt")
450
  st.session_state['processing']['ocr'] = True
451
  result = asyncio.run(process_gpt4o_ocr(image, output_file))
452
  entry = f"OCR Test: {selected_file} -> {output_file}"
 
446
  doc.close()
447
  st.image(image, caption="Input Image", use_container_width=True)
448
  if st.button("Run OCR 🚀", key="ocr_run"):
449
+ output_file = generate_filename("ocr_output", "md")
450
  st.session_state['processing']['ocr'] = True
451
  result = asyncio.run(process_gpt4o_ocr(image, output_file))
452
  entry = f"OCR Test: {selected_file} -> {output_file}"