(callback)
| 119 | } |
| 120 | |
| 121 | export function setTrainButtonCallback(callback) { |
| 122 | const trainButton = document.getElementById('train'); |
| 123 | const modelType = document.getElementById('model-type'); |
| 124 | trainButton.addEventListener('click', () => { |
| 125 | trainButton.setAttribute('disabled', true); |
| 126 | modelType.setAttribute('disabled', true); |
| 127 | callback(); |
| 128 | }); |
| 129 | } |
nothing calls this directly
no outgoing calls
no test coverage detected