Spaces:
Sleeping
Sleeping
Update app.py
Browse files13 unmodified lines14151617181920212223242526272813 unmodified linesfrom opyidrecog import initSDKfrom opyidrecog import processImagelicenseKeyPath = "license.txt"license = ""try:with open(licenseKeyPath, 'r') as file:license = file.read().strip()except IOError as exc:print("failed to open license.txt: ", exc.errno)print("License Key: ", license)hwid = getHWID()print("HWID: ", hwid.decode('utf-8'))13 unmodified lines14151617181920212223242526272813 unmodified linesfrom opyidrecog import initSDKfrom opyidrecog import processImagelicense = os.environ.get("LICENSE_KEY")if license is None:try:with open(licenseKeyPath, 'r') as file:license = file.read().strip()except IOError as exc:print("failed to open license.txt: ", exc.errno)print("License Key: ", license)hwid = getHWID()print("HWID: ", hwid.decode('utf-8'))
app.py+9-9