Update README.md
Browse files
README.md
CHANGED
@@ -21,7 +21,7 @@ npm i @huggingface/transformers
|
|
21 |
import { MgpstrForSceneTextRecognition, MgpstrProcessor, RawImage } from '@huggingface/transformers';
|
22 |
|
23 |
const model_id = 'onnx-community/mgp-str-base';
|
24 |
-
const model = await MgpstrForSceneTextRecognition.from_pretrained(model_id
|
25 |
const processor = await MgpstrProcessor.from_pretrained(model_id);
|
26 |
|
27 |
// Load image from the IIIT-5k dataset
|
|
|
21 |
import { MgpstrForSceneTextRecognition, MgpstrProcessor, RawImage } from '@huggingface/transformers';
|
22 |
|
23 |
const model_id = 'onnx-community/mgp-str-base';
|
24 |
+
const model = await MgpstrForSceneTextRecognition.from_pretrained(model_id);
|
25 |
const processor = await MgpstrProcessor.from_pretrained(model_id);
|
26 |
|
27 |
// Load image from the IIIT-5k dataset
|