Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
|
16 |
|
17 |
# Example for PyTorch model or doctr model
|
18 |
|
19 |
-
ocr_model = ocr_predictor(det_arch='
|
20 |
|
21 |
|
22 |
import torch
|
|
|
16 |
|
17 |
# Example for PyTorch model or doctr model
|
18 |
|
19 |
+
ocr_model = ocr_predictor(det_arch='db_mobilenet_v3_large', reco_arch='crnn_mobilenet_v3_small', pretrained=True).to(device)
|
20 |
|
21 |
|
22 |
import torch
|