SakibRumu
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import torch
|
| 3 |
import cv2
|
|
@@ -5,8 +8,7 @@ import pytesseract
|
|
| 5 |
import numpy as np
|
| 6 |
from PIL import Image
|
| 7 |
from ultralytics import YOLO
|
| 8 |
-
|
| 9 |
-
pytesseract.pytesseract.tesseract_cmd = "/usr/bin/tesseract" # Hugging Face path
|
| 10 |
|
| 11 |
# Load model
|
| 12 |
model = YOLO("/home/user/app/best.pt")
|
|
|
|
| 1 |
+
import pytesseract
|
| 2 |
+
pytesseract.pytesseract.tesseract_cmd = "/usr/bin/tesseract"
|
| 3 |
+
|
| 4 |
import gradio as gr
|
| 5 |
import torch
|
| 6 |
import cv2
|
|
|
|
| 8 |
import numpy as np
|
| 9 |
from PIL import Image
|
| 10 |
from ultralytics import YOLO
|
| 11 |
+
|
|
|
|
| 12 |
|
| 13 |
# Load model
|
| 14 |
model = YOLO("/home/user/app/best.pt")
|