Update index.js
Browse files
index.js
CHANGED
@@ -373,11 +373,10 @@ uploadInput.addEventListener('change', (e) => {
|
|
373 |
reader.readAsDataURL(file);
|
374 |
});
|
375 |
|
376 |
-
|
377 |
currentQuery = e.target.value;
|
378 |
});
|
379 |
|
380 |
-
|
381 |
form.addEventListener('submit', (e) => {
|
382 |
e.preventDefault();
|
383 |
|
|
|
373 |
reader.readAsDataURL(file);
|
374 |
});
|
375 |
|
376 |
+
promptInput.addEventListener('keypress', (e) => {
|
377 |
currentQuery = e.target.value;
|
378 |
});
|
379 |
|
|
|
380 |
form.addEventListener('submit', (e) => {
|
381 |
e.preventDefault();
|
382 |
|