a1c00l commited on
Commit
1a8a56f
·
verified ·
1 Parent(s): 036f995

Update templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +21 -2
templates/index.html CHANGED
@@ -128,6 +128,12 @@
128
  background-color: #2980b9;
129
  }
130
 
 
 
 
 
 
 
131
  code {
132
  background-color: #f8f9fa;
133
  padding: 2px 5px;
@@ -168,9 +174,11 @@
168
  <p>
169
  Enter a model on Hugging Face, in a format <code>&lt;organization-or-username&gt;/&lt;model-name&gt;</code> to generate AI SBOM in CycloneDX format. You can browse available models in the <a href="https://huggingface.co/models" target="_blank" rel="noopener noreferrer">Hugging Face models repository</a>.
170
  </p>
171
- <form action="/generate" method="post">
 
172
  <input type="text" name="model_id" placeholder="e.g., openai/whisper-tiny" required>
173
- <button type="submit">Generate AI SBOM</button>
 
174
  </form>
175
  </div>
176
 
@@ -209,5 +217,16 @@
209
  <p>© 2025 AI SBOM Generator | Powered by Aetheris AI</p>
210
  </div>
211
  </div>
 
 
 
 
 
 
 
 
 
 
 
212
  </body>
213
  </html>
 
128
  background-color: #2980b9;
129
  }
130
 
131
+ /* Style for disabled button */
132
+ button:disabled {
133
+ background-color: #bdc3c7; /* Lighter grey */
134
+ cursor: not-allowed;
135
+ }
136
+
137
  code {
138
  background-color: #f8f9fa;
139
  padding: 2px 5px;
 
174
  <p>
175
  Enter a model on Hugging Face, in a format <code>&lt;organization-or-username&gt;/&lt;model-name&gt;</code> to generate AI SBOM in CycloneDX format. You can browse available models in the <a href="https://huggingface.co/models" target="_blank" rel="noopener noreferrer">Hugging Face models repository</a>.
176
  </p>
177
+ <!-- Added id="sbom-form" to the form -->
178
+ <form id="sbom-form" action="/generate" method="post">
179
  <input type="text" name="model_id" placeholder="e.g., openai/whisper-tiny" required>
180
+ <!-- Added id="generate-button" to the button -->
181
+ <button id="generate-button" type="submit">Generate AI SBOM</button>
182
  </form>
183
  </div>
184
 
 
217
  <p>© 2025 AI SBOM Generator | Powered by Aetheris AI</p>
218
  </div>
219
  </div>
220
+
221
+ <!-- JavaScript for loading indicator -->
222
+ <script>
223
+ document.getElementById('sbom-form').addEventListener('submit', function() {
224
+ var button = document.getElementById('generate-button');
225
+ button.disabled = true;
226
+ button.textContent = 'Generating...'; // Change button text
227
+ // Optionally add a spinner icon here if desired
228
+ });
229
+ </script>
230
+
231
  </body>
232
  </html>