prithivMLmods commited on
Commit
e2e138c
·
verified ·
1 Parent(s): 368eb22

update app

Browse files
Files changed (1) hide show
  1. app.py +4 -9
app.py CHANGED
@@ -67,11 +67,6 @@ ADAPTER_SPECS = {
67
  "weights": "pytorch_lora_weights.safetensors",
68
  "adapter_name": "klein-delight"
69
  },
70
- # "h4rd8are": {
71
- # "repo": "siraxe/h4rd8are_klein9b",
72
- # "weights": "turn_to_h4rd8are_klein9b.safetensors",
73
- # "adapter_name": "h4rd8are_klein9b"
74
- # },
75
  }
76
 
77
  LOADED_ADAPTERS = set()
@@ -192,7 +187,7 @@ css="""
192
 
193
  with gr.Blocks() as demo:
194
  with gr.Column(elem_id="col-container"):
195
- gr.Markdown("# **FLUX.2-Klein-LoRA-Studio**", elem_id="main-title")
196
  gr.Markdown("Perform diverse image edits using specialized [LoRAs](https://huggingface.co/models?other=base_model:adapter:black-forest-labs/FLUX.2-klein-9B) adapters for the [FLUX.2-Klein-Distilled](https://huggingface.co/black-forest-labs/FLUX.2-klein-9B) model.")
197
 
198
  with gr.Row(equal_height=True):
@@ -227,13 +222,13 @@ with gr.Blocks() as demo:
227
  lora_adapter = gr.Dropdown(
228
  label="Choose Editing Style",
229
  choices=["None"] + list(ADAPTER_SPECS.keys()),
230
- value="Klein-Delight-Style"
231
  )
232
 
233
  gr.Examples(
234
  examples=[
235
- ["examples/1.jpg", "Relight the image to remove all existing lighting conditions and replace them with neutral, uniform illumination. Apply soft, evenly distributed lighting with no directional shadows, no harsh highlights, and no dramatic contrast. Maintain the original identity of all subjects exactly—preserve facial structure, skin tone, proportions, expressions, hair, clothing, and textures. Do not alter pose, camera angle, background geometry, or image composition. Lighting should appear balanced, and studio-neutral, similar to diffuse overcast or a soft lightbox setup. Ensure consistent exposure across the entire image with realistic depth and subtle shading only where necessary for form.", "Klein-Delight-Style"],
236
- # ["examples/2.jpg", "Make it look cinematic", "None"],
237
  ],
238
  inputs=[input_image, prompt, lora_adapter],
239
  outputs=[output_image, used_seed],
 
67
  "weights": "pytorch_lora_weights.safetensors",
68
  "adapter_name": "klein-delight"
69
  },
 
 
 
 
 
70
  }
71
 
72
  LOADED_ADAPTERS = set()
 
187
 
188
  with gr.Blocks() as demo:
189
  with gr.Column(elem_id="col-container"):
190
+ gr.Markdown("# **FLUX.2-Klein-LoRA-Studio [I2I]**", elem_id="main-title")
191
  gr.Markdown("Perform diverse image edits using specialized [LoRAs](https://huggingface.co/models?other=base_model:adapter:black-forest-labs/FLUX.2-klein-9B) adapters for the [FLUX.2-Klein-Distilled](https://huggingface.co/black-forest-labs/FLUX.2-klein-9B) model.")
192
 
193
  with gr.Row(equal_height=True):
 
222
  lora_adapter = gr.Dropdown(
223
  label="Choose Editing Style",
224
  choices=["None"] + list(ADAPTER_SPECS.keys()),
225
+ value="None"
226
  )
227
 
228
  gr.Examples(
229
  examples=[
230
+ ["examples/2.jpg", "Relight the image to remove all existing lighting conditions and replace them with neutral, uniform illumination. Apply soft, evenly distributed lighting with no directional shadows, no harsh highlights, and no dramatic contrast. Maintain the original identity of all subjects exactly—preserve facial structure, skin tone, proportions, expressions, hair, clothing, and textures. Do not alter pose, camera angle, background geometry, or image composition. Lighting should appear balanced, and studio-neutral, similar to diffuse overcast or a soft lightbox setup. Ensure consistent exposure across the entire image with realistic depth and subtle shading only where necessary for form.", "Klein-Delight-Style"],
231
+ ["examples/1.jpg", "cinematic polaroid with soft grain subtle vignette gentle lighting white frame handwritten photographed by prithivMLmods preserving realistic texture and details", "None"],
232
  ],
233
  inputs=[input_image, prompt, lora_adapter],
234
  outputs=[output_image, used_seed],