Spaces:
Running
Running
pragnakalp
commited on
Commit
·
5a6f415
1
Parent(s):
17da5da
Update app.py
Browse files
app.py
CHANGED
@@ -140,14 +140,13 @@ def generate_ocr(Method,img):
|
|
140 |
writer = csv.writer(f)
|
141 |
# write the data
|
142 |
writer.writerow(add_csv)
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
print("error in loading data",e)
|
151 |
|
152 |
|
153 |
# with open(DATA_FILE, "a") as csvfile:
|
|
|
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 |
+
# try:
|
146 |
+
# dataset = load_dataset("pragnakalp/OCR-img-to-text", data_files= "ocr_data.csv", streaming=True)
|
147 |
+
# print(dataset)
|
148 |
+
# except Exception as e:
|
149 |
+
# print("error in loading data",e)
|
|
|
150 |
|
151 |
|
152 |
# with open(DATA_FILE, "a") as csvfile:
|