Update MyForm.js
This commit is contained in:
parent
b93232f1d9
commit
4730d2eb20
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue