Update app.py
Browse files
app.py
CHANGED
|
@@ -452,7 +452,7 @@ with tab_ocr:
|
|
| 452 |
entry = f"OCR Test: {selected_file} -> {output_file}"
|
| 453 |
st.session_state['history'].append(entry)
|
| 454 |
#st.text_area("OCR Result", result, height=200, key="ocr_result")
|
| 455 |
-
st.code(result, language="python",
|
| 456 |
# 03312025 5:55AM
|
| 457 |
if len(result) > 50: open(output_file, "w").write(result); st.success(f"OCR output saved to {output_file}")
|
| 458 |
else: st.warning("OCR output too short; file not saved.")
|
|
|
|
| 452 |
entry = f"OCR Test: {selected_file} -> {output_file}"
|
| 453 |
st.session_state['history'].append(entry)
|
| 454 |
#st.text_area("OCR Result", result, height=200, key="ocr_result")
|
| 455 |
+
st.code(result, language="python", line_numbers=True, wrap_lines=True, height=200)
|
| 456 |
# 03312025 5:55AM
|
| 457 |
if len(result) > 50: open(output_file, "w").write(result); st.success(f"OCR output saved to {output_file}")
|
| 458 |
else: st.warning("OCR output too short; file not saved.")
|