pragnakalp commited on
Commit
5a6f415
·
1 Parent(s): 17da5da

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -8
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
- # os.mkdir(DATA_FILE2)
144
- commit_url = repo.push_to_hub()
145
- print(commit_url)
146
- try:
147
- dataset = load_dataset("pragnakalp/OCR-img-to-text", data_files= "ocr_data.csv", streaming=True)
148
- print(dataset)
149
- except Exception as e:
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: