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