Spaces:
Runtime error
Runtime error
Update app.py
Browse files40 unmodified lines4142434445464740 unmodified linesdef inference(img,task):os.system('mkdir temp')max_res = 904width, height = img.sizeif max(width,height) > max_res:scale = min(width,height)/max(width,height)40 unmodified lines4142434445464740 unmodified linesdef inference(img,task):os.system('mkdir temp')max_res = 256width, height = img.sizeif max(width,height) > max_res:scale = min(width,height)/max(width,height)
app.py+1-1