Spaces:
Running
Running
Update static/script.js
Browse files- 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 |
-
|
| 973 |
-
|
| 974 |
-
|
| 975 |
-
|
| 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 |
}
|