Sahar7888 commited on
Commit
c8ad4de
·
verified ·
1 Parent(s): 64d8b36

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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)