Spaces:
Runtime error
Runtime error
Ahsen Khaliq
commited on
Commit
·
ff71b91
1
Parent(s):
7f9d892
Update app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ def inference(img):
|
|
42 |
hsize = int((float(img.size[1])*float(wpercent)))
|
43 |
img = img.resize((basewidth,hsize), Image.ANTIALIAS)
|
44 |
img.save(INPUT_DIR + "1.jpg", "JPEG")
|
45 |
-
run_cmd("python inference_realesrgan.py --model_path RealESRGAN_x4plus.pth --input "+ INPUT_DIR + " --output " + OUTPUT_DIR + " --netscale 4 --outscale
|
46 |
return os.path.join(OUTPUT_DIR, "1_out.jpg")
|
47 |
|
48 |
|
|
|
42 |
hsize = int((float(img.size[1])*float(wpercent)))
|
43 |
img = img.resize((basewidth,hsize), Image.ANTIALIAS)
|
44 |
img.save(INPUT_DIR + "1.jpg", "JPEG")
|
45 |
+
run_cmd("python inference_realesrgan.py --model_path RealESRGAN_x4plus.pth --input "+ INPUT_DIR + " --output " + OUTPUT_DIR + " --netscale 4 --outscale 4")
|
46 |
return os.path.join(OUTPUT_DIR, "1_out.jpg")
|
47 |
|
48 |
|