Spaces:
Runtime error
Runtime error
Freiburg-AI-Research
commited on
Commit
Β·
5737d71
1
Parent(s):
869c3ce
Update app.py
Browse files
app.py
CHANGED
@@ -240,12 +240,12 @@ def to_base64(pil_image):
|
|
240 |
return base64.b64encode(buffered.getvalue())
|
241 |
|
242 |
title = "Interactive demo: glide-text2im dermoscopic image generator"
|
243 |
-
description = "Demo for the Finetuned version of OpenAI's GLIDE: Towards Photorealistic Image Generation and Editing with Text-Guided Diffusion Models."
|
244 |
article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2112.10741'>GLIDE: Towards Photorealistic Image Generation and Editing with Text-Guided Diffusion Models</a> | <a href='https://github.com/openai/glide-text2im/'>Official Repo</a></p>"
|
245 |
-
examples =["
|
246 |
|
247 |
iface = gr.Interface(fn=sample,
|
248 |
-
inputs=gr.inputs.Textbox(label='
|
249 |
outputs=gr.outputs.Image(type="pil", label="Model input + completions"),
|
250 |
title=title,
|
251 |
description=description,
|
|
|
240 |
return base64.b64encode(buffered.getvalue())
|
241 |
|
242 |
title = "Interactive demo: glide-text2im dermoscopic image generator"
|
243 |
+
description = "Demo for the Finetuned version of OpenAI's GLIDE: Towards Photorealistic Image Generation and Editing with Text-Guided Diffusion Models. Please be aware that generation of the image will take up to 20 minutes, as CPU is used for the generation"
|
244 |
article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2112.10741'>GLIDE: Towards Photorealistic Image Generation and Editing with Text-Guided Diffusion Models</a> | <a href='https://github.com/openai/glide-text2im/'>Official Repo</a></p>"
|
245 |
+
examples =["melanoma"]
|
246 |
|
247 |
iface = gr.Interface(fn=sample,
|
248 |
+
inputs=gr.inputs.Textbox(label='Which dermoscopic entity would you like to see? Choose one of the following one: "melanoma", "melanocytic nevi", "Actinic keratoses and intraepithelial carcinoma / Bowen's disease; benign keratosis-like lesions (solar lentigines / seborrheic keratoses and lichen-planus like keratoses", "basal cell carcinoma", "dermatofibroma", "vascular lesions"'),
|
249 |
outputs=gr.outputs.Image(type="pil", label="Model input + completions"),
|
250 |
title=title,
|
251 |
description=description,
|