Spaces:
Runtime error
Runtime error
Ahsen Khaliq commited on
Commit ·
8f2e8f4
1
Parent(s): 48d2175
Update app.py
Browse files41 unmodified lines42434445464748495041 unmodified linesimg = img.resize((basewidth,hsize), Image.ANTIALIAS)img.save(INPUT_DIR + "1.jpg", "JPEG")if mode == "base":run_cmd("python inference_realesrgan.py --model_path RealESRGAN_x4plus.pth --input "+ INPUT_DIR + " --output " + OUTPUT_DIR + " --netscale 4 --outscale 4")else:os.system("python inference_realesrgan.py --model_path RealESRGAN_x4plus_anime_6B.pth --input "+ INPUT_DIR + " --output " + OUTPUT_DIR)return os.path.join(OUTPUT_DIR, "1_out.jpg")41 unmodified lines42434445464748495041 unmodified linesimg = img.resize((basewidth,hsize), Image.ANTIALIAS)img.save(INPUT_DIR + "1.jpg", "JPEG")if mode == "base":run_cmd("python inference_realesrgan.py -n RealESRGAN_x4plus -i "+ INPUT_DIR + " -o " + OUTPUT_DIR)else:os.system("python inference_realesrgan.py -n RealESRGAN_x4plus_anime_6B -i "+ INPUT_DIR + " -o " + OUTPUT_DIR)return os.path.join(OUTPUT_DIR, "1_out.jpg")
app.py+2-2