Spaces:
Running
Running
ping98k
Implement event handler functions for heatmap, K-Means, cluster plot, and naming events; refactor main.js to use these handlers.
f2e1fb8 Download main.js from ping98k/Embedding-Playground: direct link, hf CLI and curl.
- Browser
- Download file 550 Bytes
-
https://huggingface.co/spaces/ping98k/Embedding-Playground/resolve/main/main.js
- Command line
-
hf download hf://spaces/ping98k/Embedding-Playground/main.js
-
curl -L -o main.js https://huggingface.co/spaces/ping98k/Embedding-Playground/resolve/main/main.js
550 Bytes
| import { handleHeatmapEvent } from './heatmap_event.js'; | |
| import { handleKMeansEvent } from './kmeans_event.js'; | |
| import { handleClusterPlotEvent } from './clusterplot_event.js'; | |
| import { handleNamingEvent } from './naming_event.js'; | |
| // Attach event handlers to buttons | |
| document.getElementById("heatmap-btn").onclick = handleHeatmapEvent; | |
| document.getElementById("kmeans-btn").onclick = handleKMeansEvent; | |
| document.getElementById("clusterplot-btn").onclick = handleClusterPlotEvent; | |
| document.getElementById("naming-btn").onclick = handleNamingEvent; | |