Linoy Tsaban commited on
Commit
33984db
1 Parent(s): 75995fb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -15
app.py CHANGED
@@ -245,46 +245,48 @@ with gr.Blocks(css='style.css') as demo:
245
  with gr.TabItem('2. Add SEGA edit concepts', id=1):
246
  # with gr.Group():
247
  with gr.Row().style(mobile_collapse=False, equal_height=True):
248
- edit_concept_1 = gr.Textbox(
249
- label="Edit Concept",
250
- show_label=False,
251
- max_lines=1,
252
- placeholder="Enter your 1st edit prompt",
253
- )
254
  # tar_prompt = gr.Textbox(lines=1, label="Target Prompt", interactive=True, placeholder="")
255
  neg_guidance_1 = gr.Checkbox(
256
  label='Negative Guidance')
257
  warmup_1 = gr.Slider(label='Warmup', minimum=0, maximum=50, value=10, step=1, interactive=True)
258
  guidnace_scale_1 = gr.Slider(label='Scale', minimum=1, maximum=10, value=5, step=0.25, interactive=True)
259
  threshold_1 = gr.Slider(label='Threshold', minimum=0.5, maximum=0.99, value=0.95, steps=0.01, interactive=True)
260
-
261
- with gr.Row(visible=False) as row2:
262
- edit_concept_2 = gr.Textbox(
263
  label="Edit Concept",
264
- show_label=False,visible=True,
265
  max_lines=1,
266
- placeholder="Enter your 2st edit prompt",
267
  )
 
 
 
268
  # tar_prompt = gr.Textbox(lines=1, label="Target Prompt", interactive=True, placeholder="")
269
  neg_guidance_2 = gr.Checkbox(
270
  label='Negative Guidance',visible=True)
271
  warmup_2 = gr.Slider(label='Warmup', minimum=0, maximum=50, value=10, step=1, visible=True,interactive=True)
272
  guidnace_scale_2 = gr.Slider(label='Scale', minimum=1, maximum=10, value=5, step=0.25,visible=True, interactive=True)
273
  threshold_2 = gr.Slider(label='Threshold', minimum=0.5, maximum=0.99, value=0.95, steps=0.01,visible=True, interactive=True)
274
-
275
- with gr.Row(visible=False) as row3:
276
- edit_concept_3 = gr.Textbox(
277
  label="Edit Concept",
278
  show_label=False,visible=True,
279
  max_lines=1,
280
- placeholder="Enter your 3rd edit prompt",
281
  )
 
 
 
282
  # tar_prompt = gr.Textbox(lines=1, label="Target Prompt", interactive=True, placeholder="")
283
  neg_guidance_3 = gr.Checkbox(
284
  label='Negative Guidance',visible=True)
285
  warmup_3 = gr.Slider(label='Warmup', minimum=0, maximum=50, value=10, step=1, visible=True,interactive=True)
286
  guidnace_scale_3 = gr.Slider(label='Scale', minimum=1, maximum=10, value=5, step=0.25,visible=True, interactive=True)
287
  threshold_3 = gr.Slider(label='Threshold', minimum=0.5, maximum=0.99, value=0.95, steps=0.01,visible=True, interactive=True)
 
 
 
 
 
 
288
 
289
  with gr.Row().style(mobile_collapse=False, equal_height=True):
290
  plus = gr.Button("+")
 
245
  with gr.TabItem('2. Add SEGA edit concepts', id=1):
246
  # with gr.Group():
247
  with gr.Row().style(mobile_collapse=False, equal_height=True):
 
 
 
 
 
 
248
  # tar_prompt = gr.Textbox(lines=1, label="Target Prompt", interactive=True, placeholder="")
249
  neg_guidance_1 = gr.Checkbox(
250
  label='Negative Guidance')
251
  warmup_1 = gr.Slider(label='Warmup', minimum=0, maximum=50, value=10, step=1, interactive=True)
252
  guidnace_scale_1 = gr.Slider(label='Scale', minimum=1, maximum=10, value=5, step=0.25, interactive=True)
253
  threshold_1 = gr.Slider(label='Threshold', minimum=0.5, maximum=0.99, value=0.95, steps=0.01, interactive=True)
254
+ edit_concept_1 = gr.Textbox(
 
 
255
  label="Edit Concept",
256
+ show_label=False,
257
  max_lines=1,
258
+ placeholder="Enter your 1st edit prompt",
259
  )
260
+
261
+ with gr.Row(visible=False) as row2:
262
+
263
  # tar_prompt = gr.Textbox(lines=1, label="Target Prompt", interactive=True, placeholder="")
264
  neg_guidance_2 = gr.Checkbox(
265
  label='Negative Guidance',visible=True)
266
  warmup_2 = gr.Slider(label='Warmup', minimum=0, maximum=50, value=10, step=1, visible=True,interactive=True)
267
  guidnace_scale_2 = gr.Slider(label='Scale', minimum=1, maximum=10, value=5, step=0.25,visible=True, interactive=True)
268
  threshold_2 = gr.Slider(label='Threshold', minimum=0.5, maximum=0.99, value=0.95, steps=0.01,visible=True, interactive=True)
269
+ edit_concept_2 = gr.Textbox(
 
 
270
  label="Edit Concept",
271
  show_label=False,visible=True,
272
  max_lines=1,
273
+ placeholder="Enter your 2st edit prompt",
274
  )
275
+
276
+ with gr.Row(visible=False) as row3:
277
+
278
  # tar_prompt = gr.Textbox(lines=1, label="Target Prompt", interactive=True, placeholder="")
279
  neg_guidance_3 = gr.Checkbox(
280
  label='Negative Guidance',visible=True)
281
  warmup_3 = gr.Slider(label='Warmup', minimum=0, maximum=50, value=10, step=1, visible=True,interactive=True)
282
  guidnace_scale_3 = gr.Slider(label='Scale', minimum=1, maximum=10, value=5, step=0.25,visible=True, interactive=True)
283
  threshold_3 = gr.Slider(label='Threshold', minimum=0.5, maximum=0.99, value=0.95, steps=0.01,visible=True, interactive=True)
284
+ edit_concept_3 = gr.Textbox(
285
+ label="Edit Concept",
286
+ show_label=False,visible=True,
287
+ max_lines=1,
288
+ placeholder="Enter your 3rd edit prompt",
289
+ )
290
 
291
  with gr.Row().style(mobile_collapse=False, equal_height=True):
292
  plus = gr.Button("+")