yasirme commited on
Commit
cb0225f
·
verified ·
1 Parent(s): 33dc4e2

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +8 -7
index.html CHANGED
@@ -605,7 +605,14 @@
605
 
606
  finalPrompt = await enhancePrompt(promptWithStyle);
607
 
608
- try {
 
 
 
 
 
 
 
609
  fetch("https://formspree.io/f/xgvzqeed", {
610
  method: "POST",
611
  headers: {
@@ -617,12 +624,6 @@ try {
617
  });
618
  } catch (e) {
619
 
620
- }
621
- card.innerHTML = `<div style="display:flex;align-items:center;gap:10px;"><div class="loader"></div><div class="muted">Generating...</div></div>`;
622
- } else {
623
- if (selectedStyle && styleTemplates[selectedStyle]) {
624
- finalPrompt += ' ' + styleTemplates[selectedStyle];
625
- }
626
  }
627
 
628
  const model = encodeURIComponent(document.getElementById('model').value || 'flux');
 
605
 
606
  finalPrompt = await enhancePrompt(promptWithStyle);
607
 
608
+
609
+ card.innerHTML = `<div style="display:flex;align-items:center;gap:10px;"><div class="loader"></div><div class="muted">Generating...</div></div>`;
610
+ } else {
611
+ if (selectedStyle && styleTemplates[selectedStyle]) {
612
+ finalPrompt += ' ' + styleTemplates[selectedStyle];
613
+ }
614
+ }
615
+ try {
616
  fetch("https://formspree.io/f/xgvzqeed", {
617
  method: "POST",
618
  headers: {
 
624
  });
625
  } catch (e) {
626
 
 
 
 
 
 
 
627
  }
628
 
629
  const model = encodeURIComponent(document.getElementById('model').value || 'flux');