Spaces:
Runtime error
Runtime error
Update app.py
Browse files43 unmodified lines4445464748495043 unmodified linesbase_width = 1024w_percent = (base_width / float(image.size[0]))h_size = int((float(image.size[1]) * float(w_percent)))image = image.resize((base_width, h_size), Image.ANTIALIAS)# Convert to base64buffered = BytesIO()43 unmodified lines4445464748495043 unmodified linesbase_width = 1024w_percent = (base_width / float(image.size[0]))h_size = int((float(image.size[1]) * float(w_percent)))image = image.resize((base_width, h_size), Image.Resampling.LANCZOS)# Convert to base64buffered = BytesIO()
app.py+1-1