Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ MODELS = {
|
|
16 |
def get_duration(
|
17 |
image, model_selection
|
18 |
):
|
19 |
-
|
20 |
megapixel = math.ceil((width * height) / 1_000_000)
|
21 |
|
22 |
if model_selection in ["4xNomosWebPhotoRealPLKSR", "4xRealESRGAN"]:
|
|
|
16 |
def get_duration(
|
17 |
image, model_selection
|
18 |
):
|
19 |
+
width, height = image.size
|
20 |
megapixel = math.ceil((width * height) / 1_000_000)
|
21 |
|
22 |
if model_selection in ["4xNomosWebPhotoRealPLKSR", "4xRealESRGAN"]:
|