pragnakalp commited on
Commit
f6a87ad
·
1 Parent(s): 4d2b272

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -46,8 +46,6 @@ repo = Repository(
46
  local_dir="ocr_data", clone_from=DATASET_REPO_URL, use_auth_token=HF_TOKEN
47
  )
48
 
49
- dataset = load_dataset("pragnakalp/OCR-img-to-text")
50
-
51
  def get_device_ip_address():
52
 
53
  if os.name == "nt":
@@ -140,9 +138,11 @@ def generate_ocr(Method,img):
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)
 
46
  local_dir="ocr_data", clone_from=DATASET_REPO_URL, use_auth_token=HF_TOKEN
47
  )
48
 
 
 
49
  def get_device_ip_address():
50
 
51
  if os.name == "nt":
 
138
  writer = csv.writer(f)
139
  # write the data
140
  writer.writerow(add_csv)
141
+ all_datasets.push_to_hub("OCR-img-to-text")
142
+ # commit_url = repo.push_to_hub()
143
  print(commit_url)
144
+ dataset = load_dataset("pragnakalp/OCR-img-to-text")
145
+ print("dataset*****************",dataset)
146
  # with open(DATA_FILE, "a") as csvfile:
147
  # writer = csv.Writer(csvfile)
148
  # writer.writerow(add_csv)