Update index.js
Browse files
index.js
CHANGED
@@ -378,6 +378,8 @@ promptInput.addEventListener('keypress', (e) => {
|
|
378 |
|
379 |
form.addEventListener('submit', (e) => {
|
380 |
e.preventDefault();
|
|
|
|
|
381 |
|
382 |
if (!currentImage || !currentQuery) {
|
383 |
status.textContent = 'Please select an image and type a prompt';
|
|
|
378 |
|
379 |
form.addEventListener('submit', (e) => {
|
380 |
e.preventDefault();
|
381 |
+
promptInput.disabled = true;
|
382 |
+
uploadInput.disabled = true;
|
383 |
|
384 |
if (!currentImage || !currentQuery) {
|
385 |
status.textContent = 'Please select an image and type a prompt';
|