Spaces:
Sleeping
Sleeping
updates
Browse files- static/images/wave_icon.svg +8 -1
- static/script.js +3 -0
static/images/wave_icon.svg
CHANGED
static/script.js
CHANGED
@@ -38,6 +38,9 @@ const generateImage = async (text, model) => {
|
|
38 |
textGenForm.addEventListener("submit", async (event) => {
|
39 |
event.preventDefault();
|
40 |
|
|
|
|
|
|
|
41 |
verificationDetails.style.display = "none";
|
42 |
parameters.style.display = "none";
|
43 |
downloadLink.style.display = "none";
|
|
|
38 |
textGenForm.addEventListener("submit", async (event) => {
|
39 |
event.preventDefault();
|
40 |
|
41 |
+
if (!textGenInput.value || !model.value)
|
42 |
+
return;
|
43 |
+
|
44 |
verificationDetails.style.display = "none";
|
45 |
parameters.style.display = "none";
|
46 |
downloadLink.style.display = "none";
|