ash123 commited on
Commit
418dc16
1 Parent(s): e1ad05d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -11
app.py CHANGED
@@ -49,7 +49,10 @@ def generate_image(prompt: str,negative_prompt:str , inference_steps: int = 25,
49
  images = images.reshape((num_samples,) + images.shape[-3:])
50
  images = pipeline.numpy_to_pil(images)
51
  return images[0]
52
- examples = [["A watercolor painting of a bird"],["A watercolor painting of an otter"],["Marvel MCU deadpool, red mask, red shirt, red gloves, black shoulders, black elbow pads, black legs, gold buckle, black belt, black mask, white eyes, black boots, fuji low light color 35mm film, downtown Osaka alley at night out of focus in background, neon lights","mountain"] ]
 
 
 
53
  css = """
54
  .gradio-container {
55
  font-family: 'IBM Plex Sans', sans-serif;
@@ -296,16 +299,6 @@ with block:
296
  prompt_input.submit(generate_image, inputs=[prompt_input, negative, inf_steps_input,seed_input,guidance_scale], outputs=[gallery], postprocess=False)
297
  btn.click(generate_image, inputs=[prompt_input, negative, inf_steps_input,seed_input,guidance_scale], outputs=[gallery], postprocess=False)
298
 
299
- #advanced_button.click(
300
- # None,
301
- # [],
302
- # prompt_input,
303
- # _js="""
304
- # () => {
305
- # const options = document.querySelector("body > gradio-app").querySelector("#advanced-options");
306
- # options.style.display = ["none", ""].includes(options.style.display) ? "flex" : "none";
307
- # }""",
308
- #)
309
  share_button.click(
310
  None,
311
  [],
 
49
  images = images.reshape((num_samples,) + images.shape[-3:])
50
  images = pipeline.numpy_to_pil(images)
51
  return images[0]
52
+ examples = [
53
+ ["A watercolor painting of a bird"],
54
+ ["A watercolor painting of an otter"]
55
+ ]
56
  css = """
57
  .gradio-container {
58
  font-family: 'IBM Plex Sans', sans-serif;
 
299
  prompt_input.submit(generate_image, inputs=[prompt_input, negative, inf_steps_input,seed_input,guidance_scale], outputs=[gallery], postprocess=False)
300
  btn.click(generate_image, inputs=[prompt_input, negative, inf_steps_input,seed_input,guidance_scale], outputs=[gallery], postprocess=False)
301
 
 
 
 
 
 
 
 
 
 
 
302
  share_button.click(
303
  None,
304
  [],