Commit
·
51b3915
1
Parent(s):
4f50644
Update app.py
Browse files
app.py
CHANGED
|
@@ -136,11 +136,18 @@ def generate_ocr(Method,img):
|
|
| 136 |
imge = Image.fromarray(new_data.astype(np.uint8),'RGB')
|
| 137 |
# imge.show()
|
| 138 |
add_csv = [Method,imge,text_output]
|
| 139 |
-
with open(DATA_FILE, "a") as
|
| 140 |
-
writer = csv.
|
|
|
|
| 141 |
writer.writerow(add_csv)
|
| 142 |
-
|
| 143 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 144 |
# save_details(Method,text_output,img)
|
| 145 |
# sender="pragnakalp.dev33@gmail.com"
|
| 146 |
# password="httscgatatbbxxur"
|
|
|
|
| 136 |
imge = Image.fromarray(new_data.astype(np.uint8),'RGB')
|
| 137 |
# imge.show()
|
| 138 |
add_csv = [Method,imge,text_output]
|
| 139 |
+
with open(DATA_FILE, "a") as f:
|
| 140 |
+
writer = csv.writer(f)
|
| 141 |
+
# write the data
|
| 142 |
writer.writerow(add_csv)
|
| 143 |
+
commit_url = repo.push_to_hub()
|
| 144 |
+
print(commit_url)
|
| 145 |
+
|
| 146 |
+
# with open(DATA_FILE, "a") as csvfile:
|
| 147 |
+
# writer = csv.Writer(csvfile)
|
| 148 |
+
# writer.writerow(add_csv)
|
| 149 |
+
# commit_url = repo.push_to_hub()
|
| 150 |
+
# print(commit_url)
|
| 151 |
# save_details(Method,text_output,img)
|
| 152 |
# sender="pragnakalp.dev33@gmail.com"
|
| 153 |
# password="httscgatatbbxxur"
|