Spaces:
Running
Running
pragnakalp
commited on
Commit
•
0cc7d4a
1
Parent(s):
9b8c3be
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ from huggingface_hub import Repository
|
|
12 |
from datetime import datetime
|
13 |
import scipy.ndimage.interpolation as inter
|
14 |
import easyocr
|
15 |
-
from datasets import load_dataset, Image
|
16 |
from PIL import Image
|
17 |
from paddleocr import PaddleOCR
|
18 |
import socket
|
@@ -144,8 +144,8 @@ def generate_ocr(Method,img):
|
|
144 |
commit_url = repo.push_to_hub()
|
145 |
print(commit_url)
|
146 |
# try:
|
147 |
-
# dataset = load_dataset("pragnakalp/OCR-img-to-text",
|
148 |
-
# print(dataset)
|
149 |
# except Exception as e:
|
150 |
# print("error in loading data",e)
|
151 |
|
|
|
12 |
from datetime import datetime
|
13 |
import scipy.ndimage.interpolation as inter
|
14 |
import easyocr
|
15 |
+
from datasets import load_dataset, Image, Features, Array3D
|
16 |
from PIL import Image
|
17 |
from paddleocr import PaddleOCR
|
18 |
import socket
|
|
|
144 |
commit_url = repo.push_to_hub()
|
145 |
print(commit_url)
|
146 |
# try:
|
147 |
+
# dataset = load_dataset("pragnakalp/OCR-img-to-text", streaming=True)
|
148 |
+
# print(dataset.features)
|
149 |
# except Exception as e:
|
150 |
# print("error in loading data",e)
|
151 |
|