Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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", "
|
| 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}"
|