huzey commited on
Commit
f5298b9
1 Parent(s): 40154bc

update ui playground

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -3720,7 +3720,6 @@ with demo:
3720
  input_gallery, submit_button, clear_images_button, dataset_dropdown, num_images_slider, random_seed_slider, load_images_button = make_input_images_section(n_example_images=10)
3721
  submit_button.visible = False
3722
  num_images_slider.value = 30
3723
- logging_text = gr.Textbox("Logging information", label="Logging", elem_id="logging", type="text", placeholder="Logging information", autofocus=False, autoscroll=False)
3724
 
3725
  false_placeholder = gr.Checkbox(label="False", value=False, elem_id="false_placeholder", visible=False)
3726
  no_prompt = gr.Textbox("", label="", elem_id="empty_placeholder", type="text", placeholder="", visible=False)
@@ -3739,6 +3738,7 @@ with demo:
3739
  num_eig_slider.value = 1024
3740
  num_eig_slider.visible = False
3741
  submit_button = gr.Button("🔴 RUN NCUT", elem_id="run_ncut", variant='primary')
 
3742
  submit_button.click(
3743
  partial(run_fn, n_ret=1, only_eigvecs=True),
3744
  inputs=[
@@ -3787,10 +3787,10 @@ with demo:
3787
  overlay_image_checkbox = gr.Checkbox(label="Overlay Image", value=True, elem_id="overlay_image_checkbox", interactive=True)
3788
  n_eig_slider = gr.Slider(0, 1024, step=1, label="Number of Eigenvectors", value=256, elem_id="n_eig_slider", interactive=True)
3789
  run_button = gr.Button("🔴 RUN", elem_id="run_groupping", variant='primary')
3790
- current_plot = gr.Gallery(value=None, label="Current", show_label=True, elem_id="current_plot", interactive=False, rows=[1], columns=[2])
3791
  with gr.Row():
3792
  doublue_eigs_button = gr.Button("⬇️ +eigvecs", elem_id="doublue_eigs_button", variant='secondary')
3793
  half_eigs_button = gr.Button("⬆️ -eigvecs", elem_id="half_eigs_button", variant='secondary')
 
3794
 
3795
  def relative_xy(prompts):
3796
  image = prompts['image']
 
3720
  input_gallery, submit_button, clear_images_button, dataset_dropdown, num_images_slider, random_seed_slider, load_images_button = make_input_images_section(n_example_images=10)
3721
  submit_button.visible = False
3722
  num_images_slider.value = 30
 
3723
 
3724
  false_placeholder = gr.Checkbox(label="False", value=False, elem_id="false_placeholder", visible=False)
3725
  no_prompt = gr.Textbox("", label="", elem_id="empty_placeholder", type="text", placeholder="", visible=False)
 
3738
  num_eig_slider.value = 1024
3739
  num_eig_slider.visible = False
3740
  submit_button = gr.Button("🔴 RUN NCUT", elem_id="run_ncut", variant='primary')
3741
+ logging_text = gr.Textbox("Logging information", label="Logging", elem_id="logging", type="text", placeholder="Logging information", autofocus=False, autoscroll=False)
3742
  submit_button.click(
3743
  partial(run_fn, n_ret=1, only_eigvecs=True),
3744
  inputs=[
 
3787
  overlay_image_checkbox = gr.Checkbox(label="Overlay Image", value=True, elem_id="overlay_image_checkbox", interactive=True)
3788
  n_eig_slider = gr.Slider(0, 1024, step=1, label="Number of Eigenvectors", value=256, elem_id="n_eig_slider", interactive=True)
3789
  run_button = gr.Button("🔴 RUN", elem_id="run_groupping", variant='primary')
 
3790
  with gr.Row():
3791
  doublue_eigs_button = gr.Button("⬇️ +eigvecs", elem_id="doublue_eigs_button", variant='secondary')
3792
  half_eigs_button = gr.Button("⬆️ -eigvecs", elem_id="half_eigs_button", variant='secondary')
3793
+ current_plot = gr.Gallery(value=None, label="Current", show_label=True, elem_id="current_plot", interactive=False, rows=[1], columns=[2])
3794
 
3795
  def relative_xy(prompts):
3796
  image = prompts['image']