Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -91,7 +91,7 @@ def generate(prompt, negative_prompt, width, height, random_res, selected_style)
|
|
| 91 |
width, height = random.choice(resolutions)
|
| 92 |
|
| 93 |
# Expandataan scratchpad-tagit
|
| 94 |
-
prompt =
|
| 95 |
|
| 96 |
# Valitaan tyyli-LoRA ja lisätään triggeri
|
| 97 |
lora_addition = {}
|
|
@@ -137,7 +137,7 @@ def generate(prompt, negative_prompt, width, height, random_res, selected_style)
|
|
| 137 |
gr.Interface(
|
| 138 |
fn=generate,
|
| 139 |
inputs=[
|
| 140 |
-
gr.Textbox(label="Prompt"
|
| 141 |
gr.Textbox(
|
| 142 |
label="Negative Prompt",
|
| 143 |
value="(worst quality), (low quality), (blurry), (bad anatomy), (fused fingers), (extra fingers), (missing fingers), (deformed), (jpeg artifacts), (watermark), (signature), text, error, out of frame, bad hands, bad feet, bad proportions, fused limbs, cropped, username, logo, bad perspective, lowres, overexposure, bad artist, bad composition, distorted, oversaturated, mutated, bad shadow, multiple limbs, extra arms, extra legs, bad background, tilted, bad lighting, bad face, ugly, bad eyes, disfigured, multiple pictures"
|
|
|
|
| 91 |
width, height = random.choice(resolutions)
|
| 92 |
|
| 93 |
# Expandataan scratchpad-tagit
|
| 94 |
+
prompt = apply_scratchpad(prompt)
|
| 95 |
|
| 96 |
# Valitaan tyyli-LoRA ja lisätään triggeri
|
| 97 |
lora_addition = {}
|
|
|
|
| 137 |
gr.Interface(
|
| 138 |
fn=generate,
|
| 139 |
inputs=[
|
| 140 |
+
gr.Textbox(label="Prompt"),
|
| 141 |
gr.Textbox(
|
| 142 |
label="Negative Prompt",
|
| 143 |
value="(worst quality), (low quality), (blurry), (bad anatomy), (fused fingers), (extra fingers), (missing fingers), (deformed), (jpeg artifacts), (watermark), (signature), text, error, out of frame, bad hands, bad feet, bad proportions, fused limbs, cropped, username, logo, bad perspective, lowres, overexposure, bad artist, bad composition, distorted, oversaturated, mutated, bad shadow, multiple limbs, extra arms, extra legs, bad background, tilted, bad lighting, bad face, ugly, bad eyes, disfigured, multiple pictures"
|