Spaces:
Running
Running
pragnakalp
commited on
Commit
•
5fac140
1
Parent(s):
7ee9d4d
Update app.py
Browse files
app.py
CHANGED
@@ -133,6 +133,7 @@ def generate_ocr(Method,img):
|
|
133 |
new_data=img.reshape(img.shape)
|
134 |
# print("^^^^^^^^^^^^^^^",new_data)
|
135 |
imge = Image.fromarray(new_data.astype(np.uint8),'RGB')
|
|
|
136 |
add_csv = [Method,imge,text_output]
|
137 |
print("^^^^^",type(imge))
|
138 |
with open(DATA_FILE, "a") as f:
|
|
|
133 |
new_data=img.reshape(img.shape)
|
134 |
# print("^^^^^^^^^^^^^^^",new_data)
|
135 |
imge = Image.fromarray(new_data.astype(np.uint8),'RGB')
|
136 |
+
imge.save("pragnakalp/OCR-img-to-text/geeks.jpg")
|
137 |
add_csv = [Method,imge,text_output]
|
138 |
print("^^^^^",type(imge))
|
139 |
with open(DATA_FILE, "a") as f:
|