pragnakalp commited on
Commit
d07d525
·
1 Parent(s): 3004ff1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -162,12 +162,12 @@ def generate_ocr(Method,img):
162
  print(commit_url)
163
 
164
 
165
- Image.fromarray(img).save(DATA_FILE2 +"/"+ f"{image_id}.png")
166
- with open(DATA_FILE2, "wt") as csvfile:
167
- writer = csv.writer(
168
- csvfile, delimiter=" ", quotechar="|", quoting=csv.QUOTE_MINIMAL
169
- )
170
- writer.writerow(['0'])
171
 
172
  # try:
173
  # dataset = load_dataset("pragnakalp/OCR-img-to-text", streaming=True)
 
162
  print(commit_url)
163
 
164
 
165
+ print("^^%%",Image.fromarray(img).save(DATA_FILE2 +"/"+ f"{image_id}.png"))
166
+ # with open(DATA_FILE2, "wt") as csvfile:
167
+ # writer = csv.writer(
168
+ # csvfile, delimiter=" ", quotechar="|", quoting=csv.QUOTE_MINIMAL
169
+ # )
170
+ # writer.writerow(['0'])
171
 
172
  # try:
173
  # dataset = load_dataset("pragnakalp/OCR-img-to-text", streaming=True)