generate functionThu, 15 Dec 2022

download image from url and return a full url of the image

def dl_image(url): image_name = 'test_image.jpg' request.urlretrieve(url, image_name) return url_for('static', filename='%s' % image_name)

Want to kickstart your project?Use the new AI Studio to create your code