Ashrafb commited on
Commit
d3b357f
·
verified ·
1 Parent(s): c7b1499

Update static/index.html

Browse files
Files changed (1) hide show
  1. static/index.html +1 -1
static/index.html CHANGED
@@ -398,7 +398,7 @@ input[type="number"]#best_max_flavors:focus {
398
 
399
  if (response.ok) {
400
  const resultContainer = document.getElementById('resultContainer');
401
- const data = await response.text(); // Get response as text
402
  resultContainer.innerHTML = '<h2></h2>';
403
  resultContainer.innerHTML += `<p>${data.caption}</p>`; // Display caption from JSON
404
  } else {
 
398
 
399
  if (response.ok) {
400
  const resultContainer = document.getElementById('resultContainer');
401
+ const data = await response.json(); // Get response as text
402
  resultContainer.innerHTML = '<h2></h2>';
403
  resultContainer.innerHTML += `<p>${data.caption}</p>`; // Display caption from JSON
404
  } else {