tonyassi commited on
Commit
f5813b3
1 Parent(s): 923c66b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -8
app.py CHANGED
@@ -105,13 +105,6 @@ with gr.Blocks() as demo:
105
  text_ip = gr.Image(label='IP-Adapter Image', type='pil')
106
  text_prompt = gr.Textbox(label='Prompt')
107
  text_button = gr.Button("Generate")
108
- gr.Examples(
109
- [["./images/img1.jpg", "Paris Hilton", "ugly, deformed, nsfw", 1024, 1024, 0.8, 0.7, 7.5, 75]],
110
- text_ip, text_prompt, neg_prompt, width_slider, height_slider, ip_scale_slider, strength_slider, guidance_slider, steps_slider,
111
- output_image,
112
- text_to_image,
113
- cache_examples=True,
114
- )
115
  with gr.Tab("Image-to-Image"):
116
  image_ip = gr.Image(label='IP-Adapter Image', type='pil')
117
  image_image = gr.Image(label='Image', type='pil')
@@ -134,7 +127,13 @@ with gr.Blocks() as demo:
134
  guidance_slider = gr.Slider(1.0, 15.0, value=7.5, label="Guidance")
135
  steps_slider = gr.Slider(50, 100, value=75, step=1, label="Steps")
136
 
137
-
 
 
 
 
 
 
138
 
139
  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)
140
  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)
 
105
  text_ip = gr.Image(label='IP-Adapter Image', type='pil')
106
  text_prompt = gr.Textbox(label='Prompt')
107
  text_button = gr.Button("Generate")
 
 
 
 
 
 
 
108
  with gr.Tab("Image-to-Image"):
109
  image_ip = gr.Image(label='IP-Adapter Image', type='pil')
110
  image_image = gr.Image(label='Image', type='pil')
 
127
  guidance_slider = gr.Slider(1.0, 15.0, value=7.5, label="Guidance")
128
  steps_slider = gr.Slider(50, 100, value=75, step=1, label="Steps")
129
 
130
+ gr.Examples(
131
+ [["./images/img1.jpg", "Paris Hilton", "ugly, deformed, nsfw", 1024, 1024, 0.8, 0.7, 7.5, 75]],
132
+ text_ip, text_prompt, neg_prompt, width_slider, height_slider, ip_scale_slider, strength_slider, guidance_slider, steps_slider,
133
+ output_image,
134
+ text_to_image,
135
+ cache_examples=True,
136
+ )
137
 
138
  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)
139
  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)