Spaces:
Runtime error
Runtime error
Ahsen Khaliq
commited on
Commit
•
3450976
1
Parent(s):
a153b2f
Update app.py
Browse files
app.py
CHANGED
@@ -37,7 +37,7 @@ def inference(img):
|
|
37 |
hsize = int((float(img.size[1])*float(wpercent)))
|
38 |
img = img.resize((basewidth,hsize), Image.ANTIALIAS)
|
39 |
img.save(INPUT_DIR + "1.jpg", "JPEG")
|
40 |
-
run_cmd("python inference_realesrgan.py --model_path
|
41 |
return os.path.join(OUTPUT_DIR, "1_out.jpg")
|
42 |
|
43 |
|
|
|
37 |
hsize = int((float(img.size[1])*float(wpercent)))
|
38 |
img = img.resize((basewidth,hsize), Image.ANTIALIAS)
|
39 |
img.save(INPUT_DIR + "1.jpg", "JPEG")
|
40 |
+
run_cmd("python inference_realesrgan.py --model_path RealESRGAN_x4plus.pth --input "+ INPUT_DIR + " --output " + OUTPUT_DIR + " --netscale 4 --outscale 3.5")
|
41 |
return os.path.join(OUTPUT_DIR, "1_out.jpg")
|
42 |
|
43 |
|