Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
|
|
2 |
from ocr_tamil.ocr import OCR
|
3 |
import torch
|
4 |
|
5 |
-
torch.hub.load('baudm/parseq',
|
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
|
|
|
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
|