prithivMLmods commited on
Commit
0eab3b1
·
verified ·
1 Parent(s): bab4acd

update app

Browse files
Files changed (1) hide show
  1. app.py +13 -15
app.py CHANGED
@@ -265,15 +265,8 @@ with gr.Blocks(css=css, theme=steel_blue_theme) as demo:
265
  # Left Column: Inputs
266
  with gr.Column(scale=1):
267
  with gr.Row():
268
- image_1 = gr.Image(label="Base / Background / Body", type="pil", height=250)
269
- image_2 = gr.Image(label="Reference / Texture / Face", type="pil", height=250)
270
-
271
- lora_adapter = gr.Dropdown(
272
- label="Choose Editing Style",
273
- choices=["Texture Edit", "Fuse-Objects", "Face-Swap"],
274
- value="Texture Edit",
275
- info="Select the operation to perform."
276
- )
277
 
278
  prompt = gr.Text(
279
  label="Edit Prompt",
@@ -281,19 +274,24 @@ with gr.Blocks(css=css, theme=steel_blue_theme) as demo:
281
  placeholder="e.g., Apply wood texture to the mug...",
282
  )
283
 
284
- run_button = gr.Button("Generate Fusion", variant="primary")
285
 
286
- with gr.Accordion("Advanced Settings", open=False):
287
  seed = gr.Slider(label="Seed", minimum=0, maximum=MAX_SEED, step=1, value=0)
288
  randomize_seed = gr.Checkbox(label="Randomize Seed", value=True)
289
  guidance_scale = gr.Slider(label="True Guidance Scale", minimum=1.0, maximum=10.0, step=0.1, value=1.0)
290
  steps = gr.Slider(label="Inference Steps", minimum=1, maximum=50, step=1, value=4)
291
 
292
- # Right Column: Output
293
  with gr.Column(scale=1):
294
- output_image = gr.Image(label="Output Image", interactive=False, format="png", height=550)
295
-
296
- # Examples
 
 
 
 
 
 
297
  gr.Examples(
298
  examples=[
299
  ["examples/mug.jpg", "examples/wood.jpg", "Apply wood texture to the mug.", "Texture Edit"],
 
265
  # Left Column: Inputs
266
  with gr.Column(scale=1):
267
  with gr.Row():
268
+ image_1 = gr.Image(label="Base / Background / Body", type="pil", height=290)
269
+ image_2 = gr.Image(label="Reference / Texture / Face", type="pil", height=290)
 
 
 
 
 
 
 
270
 
271
  prompt = gr.Text(
272
  label="Edit Prompt",
 
274
  placeholder="e.g., Apply wood texture to the mug...",
275
  )
276
 
277
+ run_button = gr.Button("Edit Image", variant="primary")
278
 
279
+ with gr.Accordion("Advanced Settings", open=False, visible=False):
280
  seed = gr.Slider(label="Seed", minimum=0, maximum=MAX_SEED, step=1, value=0)
281
  randomize_seed = gr.Checkbox(label="Randomize Seed", value=True)
282
  guidance_scale = gr.Slider(label="True Guidance Scale", minimum=1.0, maximum=10.0, step=0.1, value=1.0)
283
  steps = gr.Slider(label="Inference Steps", minimum=1, maximum=50, step=1, value=4)
284
 
 
285
  with gr.Column(scale=1):
286
+ output_image = gr.Image(label="Output Image", interactive=False, format="png", height=350)
287
+
288
+ with gr.Row():
289
+ lora_adapter = gr.Dropdown(
290
+ label="Choose Editing Style",
291
+ choices=["Texture Edit", "Fuse-Objects", "Face-Swap"],
292
+ value="Texture Edit",
293
+ )
294
+
295
  gr.Examples(
296
  examples=[
297
  ["examples/mug.jpg", "examples/wood.jpg", "Apply wood texture to the mug.", "Texture Edit"],