SakibRumu
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,6 +5,8 @@ import pytesseract
|
|
| 5 |
import numpy as np
|
| 6 |
from PIL import Image
|
| 7 |
from ultralytics import YOLO
|
|
|
|
|
|
|
| 8 |
|
| 9 |
# Load model
|
| 10 |
model = YOLO("/home/user/app/best.pt")
|
|
@@ -81,5 +83,4 @@ interface = gr.Interface(
|
|
| 81 |
|
| 82 |
interface.launch()
|
| 83 |
|
| 84 |
-
|
| 85 |
-
pytesseract.pytesseract.tesseract_cmd = "/usr/bin/tesseract" # Hugging Face path
|
|
|
|
| 5 |
import numpy as np
|
| 6 |
from PIL import Image
|
| 7 |
from ultralytics import YOLO
|
| 8 |
+
import os
|
| 9 |
+
pytesseract.pytesseract.tesseract_cmd = "/usr/bin/tesseract" # Hugging Face path
|
| 10 |
|
| 11 |
# Load model
|
| 12 |
model = YOLO("/home/user/app/best.pt")
|
|
|
|
| 83 |
|
| 84 |
interface.launch()
|
| 85 |
|
| 86 |
+
|
|
|