Skip to content

Commit

Permalink
Merge pull request #168 from manikumarreddyu/ecommerce
Browse files Browse the repository at this point in the history
chatbot is live
  • Loading branch information
manikumarreddyu authored Oct 8, 2024
2 parents 9fc59e9 + 74c6eaa commit c0e3fb6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/src/pages/ChatBot.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ function ChatBot() {

setChatHistory((prevHistory) => [...prevHistory, { role: 'user', content: userPrompt }]);

const response = await fetch('http://localhost:5000/AgroTech-ChatBot', {
// const response = await fetch('http://localhost:5000/AgroTech-ChatBot', {
const response = await fetch('https://agrotech-chatbot.onrender.com/AgroTech-ChatBot', {

method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ prompt: userPrompt }),
Expand Down

0 comments on commit c0e3fb6

Please sign in to comment.