pragnakalp
commited on
Commit
•
4676fe1
1
Parent(s):
550f96c
Update app.py
Browse files
app.py
CHANGED
@@ -154,7 +154,7 @@ def generate_ocr(Method,img):
|
|
154 |
new_data=img.reshape(img.shape)
|
155 |
imge = Image.fromarray(new_data.astype(np.uint8),'RGB')
|
156 |
feature = datasets.Image(decode=False)
|
157 |
-
add_csv = [Method,
|
158 |
# new_image = {'image': feature.encode_example(imge)}
|
159 |
# print("newimage: ",new_image)
|
160 |
with open(DATA_FILE, "a") as f:
|
|
|
154 |
new_data=img.reshape(img.shape)
|
155 |
imge = Image.fromarray(new_data.astype(np.uint8),'RGB')
|
156 |
feature = datasets.Image(decode=False)
|
157 |
+
add_csv = [Method,img,text_output]
|
158 |
# new_image = {'image': feature.encode_example(imge)}
|
159 |
# print("newimage: ",new_image)
|
160 |
with open(DATA_FILE, "a") as f:
|