prithivMLmods commited on
Commit
7558bc2
·
verified ·
1 Parent(s): 9fbd325

update app

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -245,7 +245,7 @@ with gr.Blocks() as demo:
245
  used_seed = gr.Textbox(label="Used Seed", interactive=False, visible=False)
246
 
247
  # Style Selection Info and Gallery
248
- selected_style_info = gr.Markdown("### Selected: None (Base Model)")
249
 
250
  style_gallery = gr.Gallery(
251
  [(item["image"], item["title"]) for item in LORA_STYLES],
@@ -257,10 +257,10 @@ with gr.Blocks() as demo:
257
 
258
  gr.Examples(
259
  examples=[
260
- ["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.", 1],
261
- ["examples/1.jpg", "cinematic polaroid with soft grain subtle vignette gentle lighting white frame handwritten photographed by prithivMLmods preserving realistic texture and details", 0],
262
  ],
263
- inputs=[input_image, prompt, selected_style_index],
264
  outputs=[output_image, used_seed],
265
  fn=infer_example,
266
  cache_examples=False,
@@ -268,7 +268,6 @@ with gr.Blocks() as demo:
268
 
269
  gr.Markdown("[*](https://huggingface.co/black-forest-labs/FLUX.2-klein-9B)This is still an experimental Space for FLUX.2-Klein-9B. More adapters will be added soon.")
270
 
271
- # Event handlers
272
  style_gallery.select(
273
  update_style_selection,
274
  outputs=[selected_style_info, selected_style_index]
 
245
  used_seed = gr.Textbox(label="Used Seed", interactive=False, visible=False)
246
 
247
  # Style Selection Info and Gallery
248
+ selected_style_info = gr.Markdown("### Selected: None (FLUX.2-klein-9B)")
249
 
250
  style_gallery = gr.Gallery(
251
  [(item["image"], item["title"]) for item in LORA_STYLES],
 
257
 
258
  gr.Examples(
259
  examples=[
260
+ ["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."],
261
+ ["examples/1.jpg", "cinematic polaroid with soft grain subtle vignette gentle lighting white frame handwritten photographed by prithivMLmods preserving realistic texture and details"],
262
  ],
263
+ inputs=[input_image, prompt],
264
  outputs=[output_image, used_seed],
265
  fn=infer_example,
266
  cache_examples=False,
 
268
 
269
  gr.Markdown("[*](https://huggingface.co/black-forest-labs/FLUX.2-klein-9B)This is still an experimental Space for FLUX.2-Klein-9B. More adapters will be added soon.")
270
 
 
271
  style_gallery.select(
272
  update_style_selection,
273
  outputs=[selected_style_info, selected_style_index]