pragnakalp commited on
Commit
c506677
1 Parent(s): 30d5ff6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -40,7 +40,7 @@ try:
40
  hf_hub_download(
41
  repo_id=DATASET_REPO_ID,
42
  filename=DATA_FILENAME,
43
- # cache_dir=DATA_DIRNAME,
44
  force_filename=DATA_FILENAME
45
  )
46
 
@@ -145,8 +145,7 @@ def generate_ocr(Method,img):
145
  writer.writerow(add_csv)
146
  commit_url = repo.push_to_hub()
147
  print(commit_url)
148
- dataset = load_dataset("pragnakalp/OCR-img-to-text")
149
- print("dataset*****************",dataset)
150
  # with open(DATA_FILE, "a") as csvfile:
151
  # writer = csv.Writer(csvfile)
152
  # writer.writerow(add_csv)
 
40
  hf_hub_download(
41
  repo_id=DATASET_REPO_ID,
42
  filename=DATA_FILENAME,
43
+ cache_dir=DATA_DIRNAME,
44
  force_filename=DATA_FILENAME
45
  )
46
 
 
145
  writer.writerow(add_csv)
146
  commit_url = repo.push_to_hub()
147
  print(commit_url)
148
+
 
149
  # with open(DATA_FILE, "a") as csvfile:
150
  # writer = csv.Writer(csvfile)
151
  # writer.writerow(add_csv)