pragnakalp commited on
Commit
51b3915
1 Parent(s): 4f50644

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -4
app.py CHANGED
@@ -136,11 +136,18 @@ def generate_ocr(Method,img):
136
  imge = Image.fromarray(new_data.astype(np.uint8),'RGB')
137
  # imge.show()
138
  add_csv = [Method,imge,text_output]
139
- with open(DATA_FILE, "a") as csvfile:
140
- writer = csv.Writer(csvfile)
 
141
  writer.writerow(add_csv)
142
- commit_url = repo.push_to_hub()
143
- print(commit_url)
 
 
 
 
 
 
144
  # save_details(Method,text_output,img)
145
  # sender="[email protected]"
146
  # password="httscgatatbbxxur"
 
136
  imge = Image.fromarray(new_data.astype(np.uint8),'RGB')
137
  # imge.show()
138
  add_csv = [Method,imge,text_output]
139
+ with open(DATA_FILE, "a") as f:
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)
149
+ # commit_url = repo.push_to_hub()
150
+ # print(commit_url)
151
  # save_details(Method,text_output,img)
152
  # sender="[email protected]"
153
  # password="httscgatatbbxxur"