Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -875,8 +875,8 @@ async def read_root():
|
|
875 |
reader.onload = function(e) {
|
876 |
const img = new Image();
|
877 |
img.onload = function() {
|
878 |
-
const maxWidth =
|
879 |
-
const maxHeight =
|
880 |
let width = img.width;
|
881 |
let height = img.height;
|
882 |
if (width > maxWidth || height > maxHeight) {
|
|
|
875 |
reader.onload = function(e) {
|
876 |
const img = new Image();
|
877 |
img.onload = function() {
|
878 |
+
const maxWidth = 640;
|
879 |
+
const maxHeight = 640;
|
880 |
let width = img.width;
|
881 |
let height = img.height;
|
882 |
if (width > maxWidth || height > maxHeight) {
|