Update static/index.html
Browse files- static/index.html +1 -1
static/index.html
CHANGED
@@ -370,7 +370,7 @@ input[type="number"]#best_max_flavors:focus {
|
|
370 |
async function generateDescription() {
|
371 |
var formData = new FormData();
|
372 |
var fileInput = document.querySelector('input[type="file"]');
|
373 |
-
const
|
374 |
formData.append("image", fileInput.files[0]);
|
375 |
formData.append("context", contextInput.value);
|
376 |
// Check if the file input is empty
|
|
|
370 |
async function generateDescription() {
|
371 |
var formData = new FormData();
|
372 |
var fileInput = document.querySelector('input[type="file"]');
|
373 |
+
const contextInput = document.getElementById('context');
|
374 |
formData.append("image", fileInput.files[0]);
|
375 |
formData.append("context", contextInput.value);
|
376 |
// Check if the file input is empty
|