def generate_qrcode(url):
    qrcode = segno.make_qr(url)
    buffer = io.BytesIO()
    qrcode.save(buffer, kind='svg', xmldecl=False, scale=5, omitsize=True)
    return buffer.getvalue().decode()
def generate_qrcode(url):
    qrcode = segno.make_qr(url)
    buffer = io.BytesIO()
    qrcode.save(buffer, kind='svg', xmldecl=False, scale=5, omitsize=True)
    return buffer.getvalue().decode()