Spaces:
Running
Running
pragnakalp
commited on
Commit
·
3bcf69d
1
Parent(s):
b5df9db
Update app.py
Browse files
app.py
CHANGED
@@ -155,7 +155,7 @@ def generate_ocr(Method,img):
|
|
155 |
imge = Image.fromarray(new_data.astype(np.uint8),'RGB')
|
156 |
add_csv = [Method,imge,text_output]
|
157 |
feature = datasets.Image(decode=False)
|
158 |
-
new_image = {'image': feature.encode_example(
|
159 |
print("newimage: ",new_image)
|
160 |
with open(DATA_FILE, "a") as f:
|
161 |
writer = csv.writer(f)
|
|
|
155 |
imge = Image.fromarray(new_data.astype(np.uint8),'RGB')
|
156 |
add_csv = [Method,imge,text_output]
|
157 |
feature = datasets.Image(decode=False)
|
158 |
+
new_image = {'image': feature.encode_example(imge)}
|
159 |
print("newimage: ",new_image)
|
160 |
with open(DATA_FILE, "a") as f:
|
161 |
writer = csv.writer(f)
|