Dileep7729 commited on
Commit
30ba6d5
·
verified ·
1 Parent(s): 40d949b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -4,8 +4,9 @@ import gradio as gr
4
  import torch
5
  import pytesseract
6
 
7
- # Set the path to the Tesseract executable
8
- pytesseract.pytesseract.tesseract_cmd = r"C:\Program Files\Tesseract-OCR\tesseract.exe" # Replace with your actual Tesseract path
 
9
 
10
 
11
  # Load the fine-tuned model and processor from local files
 
4
  import torch
5
  import pytesseract
6
 
7
+ # Set the Linux path for Tesseract
8
+ pytesseract.pytesseract.tesseract_cmd = "/usr/bin/tesseract"
9
+
10
 
11
 
12
  # Load the fine-tuned model and processor from local files