Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -41,7 +41,7 @@ article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2111.098
|
|
41 |
|
42 |
def inference(img,task):
|
43 |
os.system('mkdir temp')
|
44 |
-
max_res =
|
45 |
width, height = img.size
|
46 |
if max(width,height) > max_res:
|
47 |
scale = min(width,height)/max(width,height)
|
|
|
41 |
|
42 |
def inference(img,task):
|
43 |
os.system('mkdir temp')
|
44 |
+
max_res = 904
|
45 |
width, height = img.size
|
46 |
if max(width,height) > max_res:
|
47 |
scale = min(width,height)/max(width,height)
|