od: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    body: JSON.stringify({ username, password }),
  })
  .then(response => response.json())
  .then(data => {
    console.log('Login successful:', data);
    // Handle success, e.g., store token or redirect
  })
  .catch(error => {
    console.error('Login error:', error);
    // Handle error, e.g., show an error message
  });
}

//Analyze Sentiment
function login(username, password) {
  fetch(`${url}/login`, { // Replace with your 