Update static/index.html
Browse files198 unmodified lines19920020120220320420520620720820914 unmodified lines22422522622722822923023123223323423511 unmodified lines247248249250251252253254255256198 unmodified linesdocument.getElementById(spinnerId).style.display = 'none';}function displayErrorMessage(message) {const imageBox = document.getElementById("image-box");imageBox.innerHTML = `<p>${message}</p>`;}function generatePrompts() {showSpinner('promptSpinner');const prompt = document.getElementById("prompt").value;14 unmodified linesconst inputs = document.getElementById("inputs").value;const noiseLevel = document.getElementById("noise_level").value;fetch(`/send_inputs?inputs=${encodeURIComponent(inputs)}&noise_level=${noiseLevel}`).then(response => {if (!response.ok) {throw new Error('Server Error: ' + response.status);}return response.json();}).then(data => {const imageBox = document.getElementById("image-box");const img = new Image();11 unmodified lines.catch(error => {console.error('Error:', error);hideSpinner('sendSpinner');displayErrorMessage('Error occurred while processing the image.');});}</script></body></html>198 unmodified lines19920020120220320414 unmodified lines21922022122222322422511 unmodified lines237238239240241242243244198 unmodified linesdocument.getElementById(spinnerId).style.display = 'none';}function generatePrompts() {showSpinner('promptSpinner');const prompt = document.getElementById("prompt").value;14 unmodified linesconst inputs = document.getElementById("inputs").value;const noiseLevel = document.getElementById("noise_level").value;fetch(`/send_inputs?inputs=${encodeURIComponent(inputs)}&noise_level=${noiseLevel}`).then(response => response.json()).then(data => {const imageBox = document.getElementById("image-box");const img = new Image();11 unmodified lines.catch(error => {console.error('Error:', error);hideSpinner('sendSpinner');});}</script></body></html>
static/index.html+1-13