Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
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 |
|