Spaces:
Running
Running
Update index.html
Browse files- index.html +1 -0
index.html
CHANGED
|
@@ -75,6 +75,7 @@ generateButton.addEventListener("click", async () => {
|
|
| 75 |
audioElement.play();
|
| 76 |
|
| 77 |
} catch (error) {
|
|
|
|
| 78 |
console.error("Error generating audio:", error);
|
| 79 |
audioOutputDiv.innerHTML = `<p>Error: ${error.message}</p>`;
|
| 80 |
} finally {
|
|
|
|
| 75 |
audioElement.play();
|
| 76 |
|
| 77 |
} catch (error) {
|
| 78 |
+
alert("Error generating audio:", error);
|
| 79 |
console.error("Error generating audio:", error);
|
| 80 |
audioOutputDiv.innerHTML = `<p>Error: ${error.message}</p>`;
|
| 81 |
} finally {
|