malaknihed commited on
Commit
6e5e569
·
verified ·
1 Parent(s): b7c8757

Update static/script.js

Browse files
Files changed (1) hide show
  1. static/script.js +5 -5
static/script.js CHANGED
@@ -969,11 +969,11 @@ interpretButton.addEventListener('click', async function () {
969
 
970
  if (data.caption) {
971
 
972
- resultContainer.innerHTML = `
973
- <h3 "text-align: center; font-size: 1.5rem; font-weight: bold; color: black;">📸 Légende générée :</h3>
974
- <br>
975
- <p "text-align: center; font-size: 1.2rem; font-weight: bold; color: black;">${data.caption}</p>
976
- `;
977
  } else if (data.error) {
978
  resultContainer.innerHTML = `<p class="error-text">❌ Erreur : ${data.error}</p>`;
979
  }
 
969
 
970
  if (data.caption) {
971
 
972
+ resultContainer.innerHTML = `
973
+ <h3 style="text-align: center; font-size: 1.5rem; font-weight: bold; color: black;">📸 Légende générée :</h3>
974
+ <br>
975
+ <p style="text-align: center; font-size: 1.2rem; font-weight: bold; color: black;">${data.caption}</p>
976
+ `;
977
  } else if (data.error) {
978
  resultContainer.innerHTML = `<p class="error-text">❌ Erreur : ${data.error}</p>`;
979
  }