Spaces:
Runtime error
Runtime error
santhosh97
commited on
Commit
•
59741dd
1
Parent(s):
0f69fc2
Update app.py
Browse files
app.py
CHANGED
@@ -372,6 +372,22 @@ def run_prompts():
|
|
372 |
prompt_form = st.empty()
|
373 |
with prompt_form.form("prompt_form"):
|
374 |
#prompt = st.text_input("Token Name")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
375 |
full_prompt = st.text_input("Prompt")
|
376 |
prompt_keywords = st.text_input(f"Prompt Keywords")
|
377 |
submitted = st.form_submit_button(f"Submit")
|
|
|
372 |
prompt_form = st.empty()
|
373 |
with prompt_form.form("prompt_form"):
|
374 |
#prompt = st.text_input("Token Name")
|
375 |
+
st.caption(
|
376 |
+
"""
|
377 |
+
In general, the best stable diffusion prompts will have this form:
|
378 |
+
|
379 |
+
`A [prompt], [prompt_keywords]`
|
380 |
+
|
381 |
+
The `[prompt]`can be anything you’re thinking of, but Stable Diffusion still struggles with compositionality, so it shouldn’t be more than one or two main things (say, a beaver wearing a suit, or a cat samurai with a pet pug). The main subject should be mostly composed of adjectives and nouns. Avoid verbs, as Stable Diffusion has a hard time interpreting them correctly.
|
382 |
+
|
383 |
+
`[Prompt Keywords]` can be anything you want to condition the image on. I wouldn’t add too many, maybe only 1 to 3. These can really vary a lot but some good ones are: `[concept art, steampunk, trending in artstation, good composition, hyper realistic, oil on canvas, vivid colors]`.
|
384 |
+
|
385 |
+
Additionally, adding the name of an artist as a cue will make the picture look like something that artist made, though it may condition the image’s contents, especially if that artist had narrow themes (Beatrix Potter gets you spurious rabbits, for instance).
|
386 |
+
|
387 |
+
You can also find many great prompts if you use the Lexica.art prompt search engine to find images you like and make tweaks to their prompts.
|
388 |
+
"""
|
389 |
+
)
|
390 |
+
st.text("")
|
391 |
full_prompt = st.text_input("Prompt")
|
392 |
prompt_keywords = st.text_input(f"Prompt Keywords")
|
393 |
submitted = st.form_submit_button(f"Submit")
|