Spaces:
Runtime error
Runtime error
Commit
·
7cd016f
1
Parent(s):
4bf8c13
minor readme changes
Browse files
app.py
CHANGED
@@ -263,7 +263,7 @@ def inpaint(input_img, prompt):
|
|
263 |
gradio_inputs = [gr.inputs.Image(type='pil',
|
264 |
label="Input Image",
|
265 |
image_mode="RGBA"),
|
266 |
-
gr.inputs.Textbox(label='
|
267 |
|
268 |
# gradio_outputs = [gr.outputs.Image(label='Auto-Detected Mask (From drawn black pixels)')]
|
269 |
|
@@ -272,9 +272,9 @@ examples = [['desert_full.png', 'a car in the desert'],
|
|
272 |
['pumpkin.png', 'a pumpkin growing in a spooky forest'],
|
273 |
['windows.png', 'foggy california forest outside the window']]
|
274 |
|
275 |
-
title = "GLIDE
|
276 |
-
description = "
|
277 |
-
article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2112.10741' target='_blank'>GLIDE: Towards Photorealistic Image Generation and Editing with Text-Guided Diffusion Models</a> | <a href='https://github.com/openai/glide-text2im' target='_blank'>Github Repo</a></p>"
|
278 |
iface = gr.Interface(fn=inpaint, inputs=gradio_inputs,
|
279 |
outputs=gradio_outputs,
|
280 |
examples=examples, title=title,
|
|
|
263 |
gradio_inputs = [gr.inputs.Image(type='pil',
|
264 |
label="Input Image",
|
265 |
image_mode="RGBA"),
|
266 |
+
gr.inputs.Textbox(label='Text Prompt')]
|
267 |
|
268 |
# gradio_outputs = [gr.outputs.Image(label='Auto-Detected Mask (From drawn black pixels)')]
|
269 |
|
|
|
272 |
['pumpkin.png', 'a pumpkin growing in a spooky forest'],
|
273 |
['windows.png', 'foggy california forest outside the window']]
|
274 |
|
275 |
+
title = "Transparency Inpainting Using GLIDE"
|
276 |
+
description = "An implementation of [OpenAI's GLIDE model](https://github.com/openai/glide-text2im/) that inpaints transparency with image data based on a text prompt.\n This space is based on [Epoching's original GLIDE_Inpaint space](https://huggingface.co/spaces/Epoching/GLIDE_Inpaint), with some adjustments to make generating images slightly less input-heavy.\n\n*NOTE:* Since this space currently runs on the CPU, queue times are relatively long - expect to wait 3-5 minutes for each image."
|
277 |
+
article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2112.10741' target='_blank'>GLIDE: Towards Photorealistic Image Generation and Editing with Text-Guided Diffusion Models</a> | <a href='https://github.com/openai/glide-text2im' target='_blank'>Github Repo</a></p> "
|
278 |
iface = gr.Interface(fn=inpaint, inputs=gradio_inputs,
|
279 |
outputs=gradio_outputs,
|
280 |
examples=examples, title=title,
|