# \donttest{
if (exists("topic_model")) {
visualize_heatmap(model = topic_model, filename = "topics_similarity_heatmap", auto_open = FALSE)
} else {
message("No topic_model found. Please train or load a model first.")
}
# }
Run the code above in your browser using DataLab