Spaces:
Runtime error
Runtime error
Ahsen Khaliq
commited on
Commit
·
c5a1723
1
Parent(s):
28b5eab
Update app.py
Browse files
app.py
CHANGED
@@ -39,7 +39,7 @@ def inference(img):
|
|
39 |
img = img.resize((basewidth,hsize), Image.ANTIALIAS)
|
40 |
img.save(INPUT_DIR + "1.jpg", "JPEG")
|
41 |
run_cmd("python inference_gfpgan.py --upscale 2 --test_path "+ INPUT_DIR + " --save_root " + OUTPUT_DIR)
|
42 |
-
return os.path.join(OUTPUT_DIR, "
|
43 |
|
44 |
title = "Real-ESRGAN"
|
45 |
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"
|
|
|
39 |
img = img.resize((basewidth,hsize), Image.ANTIALIAS)
|
40 |
img.save(INPUT_DIR + "1.jpg", "JPEG")
|
41 |
run_cmd("python inference_gfpgan.py --upscale 2 --test_path "+ INPUT_DIR + " --save_root " + OUTPUT_DIR)
|
42 |
+
return os.path.join(OUTPUT_DIR, "1_00.png")
|
43 |
|
44 |
title = "Real-ESRGAN"
|
45 |
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"
|