Skip to content

Commit

Permalink
styles updated plus AI assistant updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ShanJoelD authored and tharoosha committed Oct 30, 2023
1 parent d98057a commit 94320d9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions frontend/src/pages/AI_Assistant.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const AI_Assistant = () => {
}
}, [response]);

<<<<<<< HEAD

// useEffect(() => {
// axios.get('${process.env.SERVER_ENDPOINT}/api/spotify_recommend', { mood: emotion })
Expand All @@ -48,6 +49,17 @@ const AI_Assistant = () => {
// })
// .catch((error) => console.error(error))
// }, [emotion]);
=======
useEffect(() => {
axios
.get('http://localhost:5001/api/spotify_recommend', { mood: emotion })
.then((response) => {
setRecommendations(response.data);
console.log(response.data);
})
.catch((error) => console.error(error));
}, [emotion]);
>>>>>>> 7da3c13 (styles updated plus AI assistant updates)


const startRecording = async () => {
Expand Down

0 comments on commit 94320d9

Please sign in to comment.