Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -2,13 +2,6 @@ import gradio as gr
|
|
2 |
from ocr_tamil.ocr import OCR
|
3 |
import torch
|
4 |
|
5 |
-
torch.hub.load('baudm/parseq', 'parseq', pretrained=True)
|
6 |
-
|
7 |
-
# model_path = r"parseq_tamil_v6.ckpt"
|
8 |
-
# text_detect_model = r"craft_mlt_25k.pth" # add the full path of the craft model
|
9 |
-
# ocr_detect = OCR(detect=True,tamil_model_path=model_path,detect_model_path=text_detect_model,enable_cuda=True)
|
10 |
-
# ocr_recognize = OCR(detect=False,tamil_model_path=model_path,detect_model_path=text_detect_model,enable_cuda=True)
|
11 |
-
|
12 |
|
13 |
ocr_detect = OCR(detect=True,enable_cuda=False)
|
14 |
ocr_recognize = OCR(detect=False,enable_cuda=False)
|
|
|
2 |
from ocr_tamil.ocr import OCR
|
3 |
import torch
|
4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
|
6 |
ocr_detect = OCR(detect=True,enable_cuda=False)
|
7 |
ocr_recognize = OCR(detect=False,enable_cuda=False)
|