Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -44,7 +44,7 @@ def process_data(image, text):
|
|
| 44 |
base_width = 1024
|
| 45 |
w_percent = (base_width / float(image.size[0]))
|
| 46 |
h_size = int((float(image.size[1]) * float(w_percent)))
|
| 47 |
-
image = image.resize((base_width, h_size), Image.
|
| 48 |
|
| 49 |
# Convert to base64
|
| 50 |
buffered = BytesIO()
|
|
|
|
| 44 |
base_width = 1024
|
| 45 |
w_percent = (base_width / float(image.size[0]))
|
| 46 |
h_size = int((float(image.size[1]) * float(w_percent)))
|
| 47 |
+
image = image.resize((base_width, h_size), Image.Resampling.LANCZOS)
|
| 48 |
|
| 49 |
# Convert to base64
|
| 50 |
buffered = BytesIO()
|