Ahsen Khaliq commited on
Commit
2b533d9
1 Parent(s): 2e24aee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -9,7 +9,7 @@ from random import randint
9
  import sys
10
  from subprocess import call
11
  import psutil
12
- torch.hub.download_url_to_file('http://people.csail.mit.edu/billf/project%20pages/sresCode/Markov%20Random%20Fields%20for%20Super-Resolution_files/100075_lowres.jpg', 'bear.jpg')
13
 
14
 
15
  def run_cmd(command):
@@ -40,9 +40,9 @@ def inference(img):
40
  run_cmd("python inference_gfpgan.py --upscale 2 --test_path "+ INPUT_DIR + " --save_root " + OUTPUT_DIR + " --paste_back")
41
  return os.path.join(OUTPUT_DIR, "1_00.png")
42
 
43
- title = "Real-ESRGAN"
44
- 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"
45
- article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2107.10833'>Real-ESRGAN: Training Real-World Blind Super-Resolution with Pure Synthetic Data</a> | <a href='https://github.com/xinntao/Real-ESRGAN'>Github Repo</a></p>"
46
  gr.Interface(
47
  inference,
48
  [gr.inputs.Image(type="pil", label="Input")],
@@ -51,7 +51,7 @@ gr.Interface(
51
  description=description,
52
  article=article,
53
  examples=[
54
- ['bear.jpg']
55
  ],
56
  enable_queue=True
57
  ).launch(debug=True)
 
9
  import sys
10
  from subprocess import call
11
  import psutil
12
+ torch.hub.download_url_to_file('https://upload.wikimedia.org/wikipedia/commons/thumb/a/ab/Abraham_Lincoln_O-77_matte_collodion_print.jpg/1024px-Abraham_Lincoln_O-77_matte_collodion_print.jpg', 'lincoln.jpg')
13
 
14
 
15
  def run_cmd(command):
 
40
  run_cmd("python inference_gfpgan.py --upscale 2 --test_path "+ INPUT_DIR + " --save_root " + OUTPUT_DIR + " --paste_back")
41
  return os.path.join(OUTPUT_DIR, "1_00.png")
42
 
43
+ title = "GFP-GAN"
44
+ description = "Gradio demo for GFP-GAN: Towards Real-World Blind Face Restoration with Generative Facial Prior. 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"
45
+ article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2101.04061'>Towards Real-World Blind Face Restoration with Generative Facial Prior</a> | <a href='https://github.com/TencentARC/GFPGAN'>Github Repo</a></p>"
46
  gr.Interface(
47
  inference,
48
  [gr.inputs.Image(type="pil", label="Input")],
 
51
  description=description,
52
  article=article,
53
  examples=[
54
+ ['lincoln.jpg']
55
  ],
56
  enable_queue=True
57
  ).launch(debug=True)