pdufour commited on
Commit
0eefa9b
1 Parent(s): 9c5178c

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +2 -0
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';