Ahsen Khaliq commited on
Commit
f6a7eef
1 Parent(s): 3cf1a59

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -14,7 +14,7 @@ def inference(img):
14
  img = img.resize((basewidth,hsize), Image.ANTIALIAS)
15
  img.save("test/1.jpg", "JPEG")
16
  os.system('python main_test_swinir.py --task real_sr --model_path experiments/pretrained_models/003_realSR_BSRGAN_DFO_s64w8_SwinIR-M_x4_GAN.pth --folder_lq test --scale 4')
17
- return 'results/swinir_real_sr_x4/1_SwinIR.jpg'
18
 
19
  title = "Real-ESRGAN"
20
  description = "Gradio demo for Real-ESRGAN. To use it, simply upload your image, or click one of the examples to load them. Read more at the links below. Please click submit only once"
 
14
  img = img.resize((basewidth,hsize), Image.ANTIALIAS)
15
  img.save("test/1.jpg", "JPEG")
16
  os.system('python main_test_swinir.py --task real_sr --model_path experiments/pretrained_models/003_realSR_BSRGAN_DFO_s64w8_SwinIR-M_x4_GAN.pth --folder_lq test --scale 4')
17
+ return 'results/swinir_real_sr_x4/1_SwinIR.png'
18
 
19
  title = "Real-ESRGAN"
20
  description = "Gradio demo for Real-ESRGAN. To use it, simply upload your image, or click one of the examples to load them. Read more at the links below. Please click submit only once"