Joschka Strueber commited on
Commit
723cce8
·
1 Parent(s): b9eaf09

[Fix] plot axes and visibility

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -74,14 +74,14 @@ with gr.Blocks(title="LLM Similarity Analyzer") as demo:
74
  ).then(
75
  fn=create_heatmap,
76
  inputs=[model_dropdown, dataset_dropdown],
77
- outputs=[heatmap, gr.update(visible=True)]
78
  )
79
 
80
  # Clear button
81
  clear_btn = gr.Button("Clear Selection")
82
  clear_btn.click(
83
  lambda: [None, None, None],
84
- outputs=[model_dropdown, dataset_dropdown, heatmap, gr.update(visible=False)]
85
  )
86
 
87
  if __name__ == "__main__":
 
74
  ).then(
75
  fn=create_heatmap,
76
  inputs=[model_dropdown, dataset_dropdown],
77
+ outputs=[heatmap, heatmap.visible])]
78
  )
79
 
80
  # Clear button
81
  clear_btn = gr.Button("Clear Selection")
82
  clear_btn.click(
83
  lambda: [None, None, None],
84
+ outputs=[model_dropdown, dataset_dropdown, heatmap]
85
  )
86
 
87
  if __name__ == "__main__":