Spaces:
Running
Running
Update index.js
Browse files
index.js
CHANGED
@@ -1,8 +1,5 @@
|
|
1 |
import { MgpstrForSceneTextRecognition, MgpstrProcessor, RawImage } from 'https://cdn.jsdelivr.net/npm/@huggingface/transformers@3.1.0';
|
2 |
|
3 |
-
// Since we will download the model from the Hugging Face Hub, we can skip the local model check
|
4 |
-
env.allowLocalModels = false;
|
5 |
-
|
6 |
// Reference the elements that we will need
|
7 |
const status = document.getElementById('status');
|
8 |
const fileUpload = document.getElementById('upload');
|
|
|
1 |
import { MgpstrForSceneTextRecognition, MgpstrProcessor, RawImage } from 'https://cdn.jsdelivr.net/npm/@huggingface/transformers@3.1.0';
|
2 |
|
|
|
|
|
|
|
3 |
// Reference the elements that we will need
|
4 |
const status = document.getElementById('status');
|
5 |
const fileUpload = document.getElementById('upload');
|