import qrcode def generate_qr(url: str): qr = qrcode.make(url) qr = qr.resize((120, 120)) return qr