Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -48,7 +48,7 @@ def generate(
|
|
48 |
):
|
49 |
client = Client("hysts/SDXL")
|
50 |
result = client.predict(
|
51 |
-
prompt=prompt,
|
52 |
negative_prompt=negative_prompt,
|
53 |
prompt_2=prompt_2,
|
54 |
negative_prompt_2=negative_prompt_2,
|
@@ -96,7 +96,7 @@ with gr.Blocks(css="style.css") as demo:
|
|
96 |
with gr.Accordion("Advanced options", open=False):
|
97 |
with gr.Row():
|
98 |
use_negative_prompt = gr.Checkbox(label="Use negative prompt", value=False)
|
99 |
-
use_prompt_2 = gr.Checkbox(label="Use prompt 2", value=
|
100 |
use_negative_prompt_2 = gr.Checkbox(label="Use negative prompt 2", value=False)
|
101 |
negative_prompt = gr.Text(
|
102 |
label="Negative prompt",
|
@@ -108,8 +108,7 @@ with gr.Blocks(css="style.css") as demo:
|
|
108 |
label="Prompt 2",
|
109 |
max_lines=1,
|
110 |
placeholder="Enter your prompt",
|
111 |
-
visible=
|
112 |
-
value="((pixelart)), ((retro illustration)), bit games, 8-bit illustration, pixelated"
|
113 |
)
|
114 |
negative_prompt_2 = gr.Text(
|
115 |
label="Negative prompt 2",
|
|
|
48 |
):
|
49 |
client = Client("hysts/SDXL")
|
50 |
result = client.predict(
|
51 |
+
prompt="((pixelart)), ((retro illustration)), bit games, 8-bit illustration, pixelated, "+prompt,
|
52 |
negative_prompt=negative_prompt,
|
53 |
prompt_2=prompt_2,
|
54 |
negative_prompt_2=negative_prompt_2,
|
|
|
96 |
with gr.Accordion("Advanced options", open=False):
|
97 |
with gr.Row():
|
98 |
use_negative_prompt = gr.Checkbox(label="Use negative prompt", value=False)
|
99 |
+
use_prompt_2 = gr.Checkbox(label="Use prompt 2", value=False)
|
100 |
use_negative_prompt_2 = gr.Checkbox(label="Use negative prompt 2", value=False)
|
101 |
negative_prompt = gr.Text(
|
102 |
label="Negative prompt",
|
|
|
108 |
label="Prompt 2",
|
109 |
max_lines=1,
|
110 |
placeholder="Enter your prompt",
|
111 |
+
visible=False,
|
|
|
112 |
)
|
113 |
negative_prompt_2 = gr.Text(
|
114 |
label="Negative prompt 2",
|