Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import gradio as gr
|
|
4 |
from io import BytesIO
|
5 |
|
6 |
# Set the tesseract command to its path
|
7 |
-
pytesseract.pytesseract.tesseract_cmd = '/usr/bin/tesseract' # Change this if the path is different
|
8 |
# OCR processing function
|
9 |
def extract_text_from_image(image):
|
10 |
try:
|
@@ -36,4 +36,4 @@ iface = gr.Interface(
|
|
36 |
)
|
37 |
|
38 |
# Launch the interface
|
39 |
-
iface.launch()
|
|
|
4 |
from io import BytesIO
|
5 |
|
6 |
# Set the tesseract command to its path
|
7 |
+
# pytesseract.pytesseract.tesseract_cmd = '/usr/bin/tesseract' # Change this if the path is different
|
8 |
# OCR processing function
|
9 |
def extract_text_from_image(image):
|
10 |
try:
|
|
|
36 |
)
|
37 |
|
38 |
# Launch the interface
|
39 |
+
iface.launch(debug=True)
|