Bobby commited on
Commit
c43329a
·
1 Parent(s): 2134494
.gitignore CHANGED
@@ -2,7 +2,7 @@ venv/*
2
  __pycache__/*
3
  anime_app_local.py
4
  *__/pycache__/*
5
- *.jpg
6
- *.png
7
  *.pyc
8
  client.py
 
2
  __pycache__/*
3
  anime_app_local.py
4
  *__/pycache__/*
5
+ ./*.jpg
6
+ ./*.png
7
  *.pyc
8
  client.py
anime_app.py CHANGED
@@ -285,8 +285,8 @@ with gr.Blocks(theme=gr.themes.Soft(), css=css) as demo:
285
  guidance_scale,
286
  seed,
287
  ]
288
- # gr.Examples(examples=["./img/peleton.webp", "./img/peleton2.webp", "./img/peleton_anime.webp", "./img/peleont2_anime.webp", "./img/miku.webp"], inputs=image)
289
-
290
  @gr.on(triggers=[image.upload], inputs=config, outputs=[result])
291
  def auto_process_image(image, prompt, a_prompt, n_prompt, num_images, image_resolution, preprocess_resolution, num_steps, guidance_scale, seed):
292
  return process_image(image, prompt, a_prompt, n_prompt, num_images, image_resolution, preprocess_resolution, num_steps, guidance_scale, seed)
 
285
  guidance_scale,
286
  seed,
287
  ]
288
+ examples = gr.Examples(examples=["./img/peleton.webp", "./img/peleton2.webp", "./img/peleton_anime.webp", "./img/peleton2_anime.webp", "./img/miku.webp"], inputs=image, run_on_click=True)
289
+
290
  @gr.on(triggers=[image.upload], inputs=config, outputs=[result])
291
  def auto_process_image(image, prompt, a_prompt, n_prompt, num_images, image_resolution, preprocess_resolution, num_steps, guidance_scale, seed):
292
  return process_image(image, prompt, a_prompt, n_prompt, num_images, image_resolution, preprocess_resolution, num_steps, guidance_scale, seed)
img/{peleon_anime.webp → peleton_anime.webp} RENAMED
File without changes