tonyassi commited on
Commit
a131b23
·
verified ·
1 Parent(s): bbd803b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -2
app.py CHANGED
@@ -136,7 +136,15 @@ with gr.Blocks() as demo:
136
  label='Text-to-Image Example'
137
  )
138
 
139
-
 
 
 
 
 
 
 
 
140
  gr.Examples(
141
  [["./images/img1.jpg", "./images/tony.jpg", "photo", "ugly, deformed, nsfw", 1024, 1024, 0.8, 0.7, 7.5, 75]],
142
  [image_ip, image_image, image_prompt, neg_prompt, width_slider, height_slider, ip_scale_slider, strength_slider, guidance_slider, steps_slider],
@@ -145,7 +153,7 @@ with gr.Blocks() as demo:
145
  cache_examples=True,
146
  label='Image-to-Image Example'
147
  )
148
-
149
 
150
  text_button.click(text_to_image, inputs=[text_ip, text_prompt, neg_prompt, width_slider, height_slider, ip_scale_slider, strength_slider, guidance_slider, steps_slider], outputs=output_image)
151
  image_button.click(image_to_image, inputs=[image_ip, image_image, image_prompt, neg_prompt, width_slider, height_slider, ip_scale_slider, strength_slider, guidance_slider, steps_slider], outputs=output_image)
 
136
  label='Text-to-Image Example'
137
  )
138
 
139
+ gr.Examples(
140
+ [["./images/img1.jpg", "Paris Hilton", "ugly, deformed, nsfw", 1024, 1024, 0.8, 0.7, 7.5, 75]],
141
+ [text_ip, text_prompt, neg_prompt, width_slider, height_slider, ip_scale_slider, strength_slider, guidance_slider, steps_slider],
142
+ output_image,
143
+ text_to_image,
144
+ cache_examples=True,
145
+ label='Text-to-Image Example'
146
+ )
147
+ """
148
  gr.Examples(
149
  [["./images/img1.jpg", "./images/tony.jpg", "photo", "ugly, deformed, nsfw", 1024, 1024, 0.8, 0.7, 7.5, 75]],
150
  [image_ip, image_image, image_prompt, neg_prompt, width_slider, height_slider, ip_scale_slider, strength_slider, guidance_slider, steps_slider],
 
153
  cache_examples=True,
154
  label='Image-to-Image Example'
155
  )
156
+ """
157
 
158
  text_button.click(text_to_image, inputs=[text_ip, text_prompt, neg_prompt, width_slider, height_slider, ip_scale_slider, strength_slider, guidance_slider, steps_slider], outputs=output_image)
159
  image_button.click(image_to_image, inputs=[image_ip, image_image, image_prompt, neg_prompt, width_slider, height_slider, ip_scale_slider, strength_slider, guidance_slider, steps_slider], outputs=output_image)