viklofg commited on
Commit
a528e7a
·
1 Parent(s): ea493bd

Update variable names for clarity

Browse files
Files changed (1) hide show
  1. app/tabs/submit.py +3 -3
app/tabs/submit.py CHANGED
@@ -233,7 +233,7 @@ with gr.Blocks() as submit:
233
  )
234
 
235
  with gr.Column():
236
- help_button = gr.Button("Edit", scale=0)
237
 
238
  pipeline_description = gr.HTML(
239
  value=get_pipeline_description,
@@ -242,7 +242,7 @@ with gr.Blocks() as submit:
242
  padding=False,
243
  )
244
 
245
- with Modal(visible=False) as help_modal:
246
  custom_template_yaml = gr.Code(
247
  value=get_yaml,
248
  inputs=pipeline_dropdown,
@@ -287,4 +287,4 @@ with gr.Blocks() as submit:
287
  examples.select(get_selected_example_image, None, batch_image_gallery)
288
  examples.select(get_selected_example_pipeline, None, pipeline_dropdown)
289
 
290
- help_button.click(lambda: Modal(visible=True), None, help_modal)
 
233
  )
234
 
235
  with gr.Column():
236
+ edit_pipeline_button = gr.Button("Edit", scale=0)
237
 
238
  pipeline_description = gr.HTML(
239
  value=get_pipeline_description,
 
242
  padding=False,
243
  )
244
 
245
+ with Modal(visible=False) as edit_pipeline_modal:
246
  custom_template_yaml = gr.Code(
247
  value=get_yaml,
248
  inputs=pipeline_dropdown,
 
287
  examples.select(get_selected_example_image, None, batch_image_gallery)
288
  examples.select(get_selected_example_pipeline, None, pipeline_dropdown)
289
 
290
+ edit_pipeline_button.click(lambda: Modal(visible=True), None, edit_pipeline_modal)