Update app.py
Browse files
app.py
CHANGED
@@ -21,12 +21,12 @@ def generate(plain_text):
|
|
21 |
|
22 |
txt = grad.Textbox(lines=1, label="Initial Text", placeholder="Input Prompt")
|
23 |
out = grad.Textbox(lines=1, label="Optimized Prompt")
|
24 |
-
examples = ["A rabbit is wearing a
|
25 |
|
26 |
grad.Interface(fn=generate,
|
27 |
inputs=txt,
|
28 |
outputs=out,
|
29 |
-
title="Promptist Demo",
|
30 |
description="Promptist is a prompt interface for Stable Diffusion v1-4 (https://huggingface.co/CompVis/stable-diffusion-v1-4) that optimizes user input into model-preferred prompts. The online demo at Hugging Face Spaces is using CPU, so slow generation speed would be expected. Please load the model locally with GPUs for faster generation.",
|
31 |
examples=examples,
|
32 |
allow_flagging='never',
|
|
|
21 |
|
22 |
txt = grad.Textbox(lines=1, label="Initial Text", placeholder="Input Prompt")
|
23 |
out = grad.Textbox(lines=1, label="Optimized Prompt")
|
24 |
+
examples = ["A rabbit is wearing a rainbow hat", "Several railroad tracks with one train passing by", "The roof is wet from the rain", "Cats dancing in a space club"]
|
25 |
|
26 |
grad.Interface(fn=generate,
|
27 |
inputs=txt,
|
28 |
outputs=out,
|
29 |
+
title="Promptist Demo by TRHACKNON",
|
30 |
description="Promptist is a prompt interface for Stable Diffusion v1-4 (https://huggingface.co/CompVis/stable-diffusion-v1-4) that optimizes user input into model-preferred prompts. The online demo at Hugging Face Spaces is using CPU, so slow generation speed would be expected. Please load the model locally with GPUs for faster generation.",
|
31 |
examples=examples,
|
32 |
allow_flagging='never',
|