maaz21 commited on
Commit
ef0458a
·
verified ·
1 Parent(s): 4662756

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -3,6 +3,9 @@ import pytesseract
3
  from PIL import Image
4
  import io
5
 
 
 
 
6
  # Set the page title and icon
7
  st.set_page_config(page_title="Image to Text Converter", page_icon="🖼️", layout="centered")
8
 
@@ -26,4 +29,4 @@ if uploaded_file is not None:
26
  st.text_area("", text, height=200)
27
 
28
  st.markdown("---")
29
- st.markdown("💡 Developed with ❤️ using Streamlit and Tesseract OCR")
 
3
  from PIL import Image
4
  import io
5
 
6
+ # Set the correct path for Tesseract
7
+ pytesseract.pytesseract.tesseract_cmd = "/usr/bin/tesseract"
8
+
9
  # Set the page title and icon
10
  st.set_page_config(page_title="Image to Text Converter", page_icon="🖼️", layout="centered")
11
 
 
29
  st.text_area("", text, height=200)
30
 
31
  st.markdown("---")
32
+ st.markdown("💡 Developed with ❤️ using Streamlit and Tesseract OCR")