prithivMLmods commited on
Commit
a364fd1
·
verified ·
1 Parent(s): 44ace3b

update app

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -360,7 +360,7 @@ with gr.Blocks() as demo:
360
  [
361
  ["examples/1.jpg"],
362
  "cinematic polaroid with soft grain subtle vignette gentle lighting white frame handwritten photographed by prithivMLmods preserving realistic texture and details",
363
- "Klein-Delight-Style"
364
  ],
365
  [
366
  ["examples/1.jpg", "examples/2.jpg"],
@@ -382,19 +382,16 @@ with gr.Blocks() as demo:
382
 
383
  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.")
384
 
385
- # Update image count info when gallery changes
386
  input_images.change(
387
  fn=get_image_count_info,
388
  inputs=[input_images],
389
  )
390
 
391
- # Update hidden selection state and prompt when gallery is clicked
392
  style_gallery.select(
393
  fn=update_style_selection,
394
  outputs=[selected_style_name, prompt]
395
  )
396
 
397
- # When hidden selection state changes (either via gallery click or Example click), update the Info Markdown
398
  selected_style_name.change(
399
  fn=update_style_info,
400
  inputs=[selected_style_name],
 
360
  [
361
  ["examples/1.jpg"],
362
  "cinematic polaroid with soft grain subtle vignette gentle lighting white frame handwritten photographed by prithivMLmods preserving realistic texture and details",
363
+ "None"
364
  ],
365
  [
366
  ["examples/1.jpg", "examples/2.jpg"],
 
382
 
383
  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.")
384
 
 
385
  input_images.change(
386
  fn=get_image_count_info,
387
  inputs=[input_images],
388
  )
389
 
 
390
  style_gallery.select(
391
  fn=update_style_selection,
392
  outputs=[selected_style_name, prompt]
393
  )
394
 
 
395
  selected_style_name.change(
396
  fn=update_style_info,
397
  inputs=[selected_style_name],