tonyassi commited on
Commit
8e3317d
1 Parent(s): 9f03f83

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -9,18 +9,21 @@ with gr.Blocks() as demo:
9
  with gr.Row():
10
  with gr.Tab("Text-to-Image"):
11
  text_ip = gr.Image(label='IP-Adapter Image')
12
- text_textbox = gr.Textbox(label='Prompt')
 
 
13
  text_ip_scale = gr.Slider(0.0, 1.0, value=0.6, label="IP-Adapter Scale"),
14
  text_button = gr.Button("Generate")
15
  with gr.Tab("Image-to-Image"):
16
  image_ip = gr.Image(label='IP-Adapter Image')
17
  image_image = gr.Image(label='Image')
18
- image_textbox = gr.Textbox(label='Prompt')
19
  image_ip_scale = gr.Slider(0.0, 1.0, value=0.6, label="IP-Adapter Scale"),
20
  image_button = gr.Button("Generate")
21
  with gr.Tab("Inpainting"):
22
  inpaint_ip = gr.Image(label='IP-Adapter Image')
23
  inpaint_editor = gr.ImageEditor(label='Image + Mask')
 
24
  inpaint_ip_scale = gr.Slider(0.0, 1.0, value=0.6, label="IP-Adapter Scale"),
25
  inpaint_button = gr.Button("Generate")
26
  output_image = gr.Image(label='Result')
 
9
  with gr.Row():
10
  with gr.Tab("Text-to-Image"):
11
  text_ip = gr.Image(label='IP-Adapter Image')
12
+ text_prompt = gr.Textbox(label='Prompt')
13
+ with gr.Accordion("Negative Prompt"):
14
+ text_neg_prompt = gr.Textbox(label='Negative Prompt')
15
  text_ip_scale = gr.Slider(0.0, 1.0, value=0.6, label="IP-Adapter Scale"),
16
  text_button = gr.Button("Generate")
17
  with gr.Tab("Image-to-Image"):
18
  image_ip = gr.Image(label='IP-Adapter Image')
19
  image_image = gr.Image(label='Image')
20
+ image_prompt = gr.Textbox(label='Prompt')
21
  image_ip_scale = gr.Slider(0.0, 1.0, value=0.6, label="IP-Adapter Scale"),
22
  image_button = gr.Button("Generate")
23
  with gr.Tab("Inpainting"):
24
  inpaint_ip = gr.Image(label='IP-Adapter Image')
25
  inpaint_editor = gr.ImageEditor(label='Image + Mask')
26
+ inpaint_prompt = gr.Textbox(label='Prompt')
27
  inpaint_ip_scale = gr.Slider(0.0, 1.0, value=0.6, label="IP-Adapter Scale"),
28
  inpaint_button = gr.Button("Generate")
29
  output_image = gr.Image(label='Result')