hf-similarity-check / text_reader_v2.py
Mitul Mohammad Abdullah Al Mukit
first commit
1f72938
raw
history blame
448 Bytes
from model1 import model1
from model2 import model2
import checkTool
def textreader(path):
info1 = model1(path)
info2 = model2(path)
def print_info(name, valid_hkid, hkid, issuedate):
print(f'Name: {name}') # name is without space
print(f'HKID: {hkid} and validity: {valid_hkid}')
print(f'Date of issue: {issuedate}')
cinfo = checkTool.combine_info(info1, info2)
return cinfo[0]
# print_info(*cinfo)