Update app.py
Browse files
app.py
CHANGED
|
@@ -321,7 +321,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
| 321 |
with gr.Column(scale=1):
|
| 322 |
input_image = gr.Image(type="pil", label="1. Reference Image")
|
| 323 |
subject_name = gr.Textbox(label="2. Subject Name", placeholder="e.g., a plush bear")
|
| 324 |
-
target_prompt = gr.Textbox(label="3. Target Prompt", placeholder="e.g., riding a
|
| 325 |
run_button = gr.Button("Generate Image", variant="primary")
|
| 326 |
with gr.Accordion("Advanced Settings", open=False):
|
| 327 |
attn_enforce = gr.Slider(minimum=1.0, maximum=2.0, value=1.3, step=0.05, label="Attention Enforcement")
|
|
@@ -338,7 +338,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
| 338 |
|
| 339 |
gr.Examples(
|
| 340 |
examples=[
|
| 341 |
-
["./assets/cat_squished.png", "a cat toy", "a cat toy riding a
|
| 342 |
["./assets/bear_plushie.jpg", "a bear plushie", "a bear plushie drinking bubble tea"],
|
| 343 |
],
|
| 344 |
inputs=[input_image, subject_name, target_prompt],
|
|
|
|
| 321 |
with gr.Column(scale=1):
|
| 322 |
input_image = gr.Image(type="pil", label="1. Reference Image")
|
| 323 |
subject_name = gr.Textbox(label="2. Subject Name", placeholder="e.g., a plush bear")
|
| 324 |
+
target_prompt = gr.Textbox(label="3. Target Prompt", placeholder="e.g., a plush bear riding a skate on the moon")
|
| 325 |
run_button = gr.Button("Generate Image", variant="primary")
|
| 326 |
with gr.Accordion("Advanced Settings", open=False):
|
| 327 |
attn_enforce = gr.Slider(minimum=1.0, maximum=2.0, value=1.3, step=0.05, label="Attention Enforcement")
|
|
|
|
| 338 |
|
| 339 |
gr.Examples(
|
| 340 |
examples=[
|
| 341 |
+
["./assets/cat_squished.png", "a cat toy", "a cat toy riding a skate"],
|
| 342 |
["./assets/bear_plushie.jpg", "a bear plushie", "a bear plushie drinking bubble tea"],
|
| 343 |
],
|
| 344 |
inputs=[input_image, subject_name, target_prompt],
|