jclyo1 commited on
Commit
f2e1586
1 Parent(s): 1dee43a
Files changed (2) hide show
  1. static/images/wave_icon.svg +8 -1
  2. 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";