Update MyForm.js

This commit is contained in:
XGitLink 2024-06-06 19:51:43 +08:00
parent b93232f1d9
commit 4730d2eb20
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ const YourComponent = () => {
event.preventDefault();
try {
const response = await axios.post('http://localhost:5000/moonshot', { message });
const response = await axios.post('http://127.0.0.1:5000/moonshot', { message });
setAssistantResponse(response.data.assistantResponse);
} catch (error) {
console.error('Error communicating with backend:', error);