Linoy Tsaban commited on
Commit
12fd402
1 Parent(s): bccbcd8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -231,10 +231,7 @@ For faster inference without waiting in queue, you may duplicate the space and u
231
  <p/>"""
232
  with gr.Blocks(css='style.css') as demo:
233
  gr.HTML(intro)
234
- with gr.Row():
235
- src_prompt = gr.Textbox(lines=1, label="Source Prompt", interactive=True, placeholder="optional: describe the original image")
236
- tar_prompt = gr.Textbox(lines=1, label="Target Prompt", interactive=True, placeholder="optional: describe the target image to edit with DDPM")
237
- edit_concept = gr.Textbox(lines=1, label="SEGA Edit Concepts", interactive=True, placeholder="optional: type a list of concepts to add/remove with SEGA\n (e.g. +dog,-cat,+oil painting)")
238
 
239
  with gr.Row():
240
  input_image = gr.Image(label="Input Image", interactive=True)
@@ -244,6 +241,10 @@ with gr.Blocks(css='style.css') as demo:
244
  ddpm_edited_image.style(height=512, width=512)
245
  sega_edited_image.style(height=512, width=512)
246
 
 
 
 
 
247
  with gr.Row():
248
  with gr.Column(scale=1, min_width=100):
249
  invert_button = gr.Button("Invert")
@@ -254,6 +255,7 @@ with gr.Blocks(css='style.css') as demo:
254
  with gr.Row():
255
  with gr.Column():
256
  #inversion
 
257
  steps = gr.Number(value=100, precision=0, label="Num Diffusion Steps", interactive=True)
258
  # src_cfg_scale = gr.Number(value=3.5, label=f"Source CFG", interactive=True)
259
 
 
231
  <p/>"""
232
  with gr.Blocks(css='style.css') as demo:
233
  gr.HTML(intro)
234
+
 
 
 
235
 
236
  with gr.Row():
237
  input_image = gr.Image(label="Input Image", interactive=True)
 
241
  ddpm_edited_image.style(height=512, width=512)
242
  sega_edited_image.style(height=512, width=512)
243
 
244
+ with gr.Row():
245
+ tar_prompt = gr.Textbox(lines=1, label="Target Prompt", interactive=True, placeholder="")
246
+ # edit_concept = gr.Textbox(lines=1, label="SEGA Edit Concepts", interactive=True, placeholder="optional: type a list of concepts to add/remove with SEGA\n (e.g. +dog,-cat,+oil painting)")
247
+
248
  with gr.Row():
249
  with gr.Column(scale=1, min_width=100):
250
  invert_button = gr.Button("Invert")
 
255
  with gr.Row():
256
  with gr.Column():
257
  #inversion
258
+ src_prompt = gr.Textbox(lines=1, label="Source Prompt", interactive=True, placeholder="")
259
  steps = gr.Number(value=100, precision=0, label="Num Diffusion Steps", interactive=True)
260
  # src_cfg_scale = gr.Number(value=3.5, label=f"Source CFG", interactive=True)
261