Spaces:
Sleeping
Sleeping
Ahsen Khaliq
commited on
Commit
•
71a5343
1
Parent(s):
a01ad06
Update app.py
Browse files
app.py
CHANGED
@@ -30,9 +30,9 @@ def infer(img):
|
|
30 |
inputs = gr.inputs.Image(type='pil', label="Original Image")
|
31 |
outputs = gr.outputs.Image(type="file",label="output")
|
32 |
title = "LaMa Image Inpainting"
|
33 |
-
description = "Gradio demo for LaMa: Resolution-robust Large Mask Inpainting with Fourier Convolutions. To use it, simply upload your image, or click one of the examples to load them. Read more at the links below."
|
34 |
article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2109.07161' target='_blank'>Resolution-robust Large Mask Inpainting with Fourier Convolutions</a> | <a href='https://github.com/saic-mdal/lama' target='_blank'>Github Repo</a></p>"
|
35 |
examples = [
|
36 |
['person.jpeg']
|
37 |
]
|
38 |
-
gr.Interface(infer, inputs, outputs, title=title, description=description, article=article, examples=examples).launch()
|
|
|
30 |
inputs = gr.inputs.Image(type='pil', label="Original Image")
|
31 |
outputs = gr.outputs.Image(type="file",label="output")
|
32 |
title = "LaMa Image Inpainting"
|
33 |
+
description = "Gradio demo for LaMa: Resolution-robust Large Mask Inpainting with Fourier Convolutions. To use it, simply upload your image, or click one of the examples to load them. Read more at the links below. Masks are generated by <a href='https://huggingface.co/spaces/akhaliq/U-2-Net' target='_blank'>U^2net</a>"
|
34 |
article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2109.07161' target='_blank'>Resolution-robust Large Mask Inpainting with Fourier Convolutions</a> | <a href='https://github.com/saic-mdal/lama' target='_blank'>Github Repo</a></p>"
|
35 |
examples = [
|
36 |
['person.jpeg']
|
37 |
]
|
38 |
+
gr.Interface(infer, inputs, outputs, title=title, description=description, article=article, examples=examples, enable_queue=True).launch()
|