legoandmars commited on
Commit
23d0a15
·
1 Parent(s): 64e44c9

you can't use html either.. at least in the description

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -272,8 +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 = "Transparency Inpainting Using GLIDE"
276
- description = "<p>An implementation of <a href='https://github.com/openai/glide-text2im/' target='_blank'>OpenAI's GLIDE model</a> that inpaints transparency with image data based on a text prompt.</p>\n<p>This space is based on <a href='https://huggingface.co/spaces/Epoching/GLIDE_Inpaint' target='_blank'>Epoching's original GLIDE_Inpaint space</a>, with some adjustments to make generating images slightly less input-heavy.</p><p>\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.</p>"
 
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,
 
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 = "[WARNING: Queue times may take 4-6 minutes per person if there's no GPU! If there is a GPU, it'll take around 60 seconds] Using GLIDE to inpaint black regions of an input image! Instructions: 1) For the 'Input Image', upload an image. 2) For the 'Input Image with Mask', draw a black-colored mask (either manually with something like Paint, or by using gradio's built-in image editor & add a black-colored shape) IT MUST BE BLACK COLOR, but doesn't have to be rectangular! This is because it auto-detects the mask based on 0 (black) pixel values! 3) For the Conditional Text, type something you'd like to see the black region get filled in with :)"
277
+ description = "An implementation of OpenAI's GLIDE model that inpaints transparency with image data based on a text prompt.\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."
278
  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> "
279
  iface = gr.Interface(fn=inpaint, inputs=gradio_inputs,
280
  outputs=gradio_outputs,