akhaliq HF staff commited on
Commit
02769c7
·
1 Parent(s): b5cd2b2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -56,5 +56,9 @@ def inference(img):
56
  pil_image = plot_image(tf.squeeze(fake_image))
57
  return pil_image
58
 
59
- gr.Interface(inference,gr.inputs.Image(type="filepath"),"image").launch(enable_queue=True)
 
 
 
 
60
 
 
56
  pil_image = plot_image(tf.squeeze(fake_image))
57
  return pil_image
58
 
59
+ title="esrgan-tf2"
60
+ description="Enhanced Super Resolution GAN (Wang et. al.)[1] for image super resolution. Produces x4 Super Resolution Image from images of {Height, Width} >=64. Works best on Bicubically downsampled images.\ (*This is because, the model is originally trained on Bicubically Downsampled DIV2K Dataset*)"
61
+ article = "<p style='text-align: center'><a href='https://tfhub.dev/captain-pool/esrgan-tf2/1' target='_blank'>Tensorflow Hub</a></p>"
62
+ examples=[['input.png']]
63
+ gr.Interface(inference,gr.inputs.Image(type="filepath"),"image",title=title,description=description,article=article,examples=examples).launch(enable_queue=True)
64