Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,9 @@ import streamlit as st
|
|
2 |
from PIL import Image
|
3 |
import pytesseract
|
4 |
|
|
|
|
|
|
|
5 |
st.set_page_config(page_title="Image to Text OCR", layout="centered")
|
6 |
|
7 |
st.title("🖼️ Image to Text Converter (OCR)")
|
@@ -21,3 +24,4 @@ if uploaded_file is not None:
|
|
21 |
else:
|
22 |
st.info("Please upload an image to get started.")
|
23 |
|
|
|
|
2 |
from PIL import Image
|
3 |
import pytesseract
|
4 |
|
5 |
+
# Explicitly set the Tesseract command path
|
6 |
+
pytesseract.pytesseract.tesseract_cmd = "/usr/bin/tesseract"
|
7 |
+
|
8 |
st.set_page_config(page_title="Image to Text OCR", layout="centered")
|
9 |
|
10 |
st.title("🖼️ Image to Text Converter (OCR)")
|
|
|
24 |
else:
|
25 |
st.info("Please upload an image to get started.")
|
26 |
|
27 |
+
|