Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def upload(file):
eel.confirm(file['name'])
rgb, u, v = create_b64_image(file)
generate_index_html(savedir, accessdir, os.path.join(savedir,"index.html"))
eel.generate({
'name': file['name'],
'type': 'flowimage',
'rgb': rgb,
'u': u,
'v': v,
})