Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -174,7 +174,7 @@ def infer_with_lora(input_image, prompt, selected_index, custom_lora, seed=42, r
|
|
174 |
elif trigger_word == ", video game screenshot in the style of THSMS":
|
175 |
prompt = f"create a video game screenshot in the style of THSMS with the person from the photo, {prompt}. maintain the facial identity of the person and general features"
|
176 |
else:
|
177 |
-
prompt = f"{prompt}.
|
178 |
|
179 |
try:
|
180 |
image = pipe(
|
@@ -233,7 +233,7 @@ with gr.Blocks(css=css) as demo:
|
|
233 |
|
234 |
title = gr.HTML(
|
235 |
"""<h1> FLUX.1 Kontext w/LoRAs by Silver Age Poets & SOON®
|
236 |
-
<br><small style="font-size: 13px; opacity: 0.75;">Edit images w/our trained adapters as style templates! FAST MODE: Pick 'Turbo' or 'Hyper', set 'Steps' to 8.
|
237 |
)
|
238 |
|
239 |
selected_state = gr.State(value=None)
|
@@ -296,7 +296,7 @@ with gr.Blocks(css=css) as demo:
|
|
296 |
label="Steps",
|
297 |
minimum=1,
|
298 |
maximum=40,
|
299 |
-
value=
|
300 |
step=1
|
301 |
)
|
302 |
randomize_seed = gr.Checkbox(label="Randomize seed", value=True)
|
@@ -305,7 +305,7 @@ with gr.Blocks(css=css) as demo:
|
|
305 |
minimum=1,
|
306 |
maximum=10,
|
307 |
step=0.1,
|
308 |
-
value=2.
|
309 |
)
|
310 |
|
311 |
prompt_title = gr.Markdown(
|
|
|
174 |
elif trigger_word == ", video game screenshot in the style of THSMS":
|
175 |
prompt = f"create a video game screenshot in the style of THSMS with the person from the photo, {prompt}. maintain the facial identity of the person and general features"
|
176 |
else:
|
177 |
+
prompt = f"{prompt}. Edit the image whilst under the influence of {trigger_word}, unless there {trigger_word} is under three-letters in length or missing, Direct the influence of {trigger_word} into regions of the image with low or missing source details. Maintain with perfect fidelity the identity of any persons or subjects! Leave the composition and most prominent details of the image unchanged. Make sure to retain facial identity and other key image features, while still potentially allowing influence from {trigger_word}. Retain facial features and proportions with great fidelity to the source."
|
178 |
|
179 |
try:
|
180 |
image = pipe(
|
|
|
233 |
|
234 |
title = gr.HTML(
|
235 |
"""<h1> FLUX.1 Kontext w/LoRAs by Silver Age Poets & SOON®
|
236 |
+
<br><small style="font-size: 13px; opacity: 0.75;">Edit images w/our trained adapters as style templates! FAST MODE: Pick 'Turbo' or 'Hyper', set 'Steps' to 8. </small></h1>""",
|
237 |
)
|
238 |
|
239 |
selected_state = gr.State(value=None)
|
|
|
296 |
label="Steps",
|
297 |
minimum=1,
|
298 |
maximum=40,
|
299 |
+
value=23,
|
300 |
step=1
|
301 |
)
|
302 |
randomize_seed = gr.Checkbox(label="Randomize seed", value=True)
|
|
|
305 |
minimum=1,
|
306 |
maximum=10,
|
307 |
step=0.1,
|
308 |
+
value=2.8,
|
309 |
)
|
310 |
|
311 |
prompt_title = gr.Markdown(
|