huzey commited on
Commit
69312c9
·
1 Parent(s): 541d2b5
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -2405,6 +2405,7 @@ with demo:
2405
  3. 🔴 RUN Inspection.
2406
  4. Output will be shown below.
2407
  """)
 
2408
  with gr.Accordion("Outputs", open=True):
2409
  gr.Markdown("""
2410
  1. spectral-tSNE tree: ◆ means connected components to the selected point.
@@ -2412,7 +2413,7 @@ with demo:
2412
  """)
2413
  with gr.Column(scale=5, min_width=200):
2414
  prompt_radio = gr.Radio(["Tree", "Image"], label="Where to click on?", value="Tree", elem_id="prompt_radio", show_label=True)
2415
- granularity_slider = gr.Slider(1, 1000, step=1, label="Cluster Granularity", value=100, elem_id="granularity")
2416
  num_sample_fps_slider.change(fn=lambda x: gr.update(maximum=x, interactive=True), inputs=[num_sample_fps_slider], outputs=[granularity_slider])
2417
  def updaste_tsne_plot_change_granularity(granularity, tsne_embed, edges, fps_tsne_rgb, tsne_prompt_image):
2418
  # Plot the t-SNE points
 
2405
  3. 🔴 RUN Inspection.
2406
  4. Output will be shown below.
2407
  """)
2408
+ gr.Markdown("Known Issue: Resize the browser window will break the clicking, please refresh the page.")
2409
  with gr.Accordion("Outputs", open=True):
2410
  gr.Markdown("""
2411
  1. spectral-tSNE tree: ◆ means connected components to the selected point.
 
2413
  """)
2414
  with gr.Column(scale=5, min_width=200):
2415
  prompt_radio = gr.Radio(["Tree", "Image"], label="Where to click on?", value="Tree", elem_id="prompt_radio", show_label=True)
2416
+ granularity_slider = gr.Slider(1, 1000, step=1, label="Cluster Granularity (k)", value=100, elem_id="granularity")
2417
  num_sample_fps_slider.change(fn=lambda x: gr.update(maximum=x, interactive=True), inputs=[num_sample_fps_slider], outputs=[granularity_slider])
2418
  def updaste_tsne_plot_change_granularity(granularity, tsne_embed, edges, fps_tsne_rgb, tsne_prompt_image):
2419
  # Plot the t-SNE points