Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -57,6 +57,7 @@ def generate_image(
|
|
| 57 |
|
| 58 |
Args:
|
| 59 |
prompt (str): Text description of the image to generate. Include: subject, style (e.g. photorealistic/anime/oil painting/watercolor/3D render), composition (e.g. close-up/wide shot/dynamic angle), lighting (e.g. soft/dramatic/backlit), colors (e.g. vibrant/muted/monochrome), mood (e.g. serene/dramatic/mysterious), setting. Specify text inquotes with position if needed. Keep under 200 words for best results.
|
|
|
|
| 60 |
"""
|
| 61 |
# Hardcode the negative prompt as requested
|
| 62 |
# negative_prompt = "text, watermark, copyright, blurry, low resolution"
|
|
@@ -143,7 +144,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 143 |
negative_prompt = gr.Text(
|
| 144 |
label="Negative Prompt",
|
| 145 |
show_label=True,
|
| 146 |
-
|
| 147 |
)
|
| 148 |
randomize_seed = gr.Checkbox(label="Randomize seed", value=True)
|
| 149 |
|
|
|
|
| 57 |
|
| 58 |
Args:
|
| 59 |
prompt (str): Text description of the image to generate. Include: subject, style (e.g. photorealistic/anime/oil painting/watercolor/3D render), composition (e.g. close-up/wide shot/dynamic angle), lighting (e.g. soft/dramatic/backlit), colors (e.g. vibrant/muted/monochrome), mood (e.g. serene/dramatic/mysterious), setting. Specify text inquotes with position if needed. Keep under 200 words for best results.
|
| 60 |
+
negative_prompt (str): Text description of traits to exclude e.g. text, watermark, copyright, blurry, low resolution
|
| 61 |
"""
|
| 62 |
# Hardcode the negative prompt as requested
|
| 63 |
# negative_prompt = "text, watermark, copyright, blurry, low resolution"
|
|
|
|
| 144 |
negative_prompt = gr.Text(
|
| 145 |
label="Negative Prompt",
|
| 146 |
show_label=True,
|
| 147 |
+
value="text, watermark, copyright, blurry, low resolution"
|
| 148 |
)
|
| 149 |
randomize_seed = gr.Checkbox(label="Randomize seed", value=True)
|
| 150 |
|