diff --git a/client/src/components/CodeEditor/CodeEditor.jsx b/client/src/components/CodeEditor/CodeEditor.jsx index 2486f4b..2c9f21f 100644 --- a/client/src/components/CodeEditor/CodeEditor.jsx +++ b/client/src/components/CodeEditor/CodeEditor.jsx @@ -237,7 +237,7 @@ export default function CodeEditor({ defaultLanguage }) { function handleGenerate() { let content = sanitizeInput(code); - const url = "http://localhost:5000/openai"; + const url = "http://127.0.0.1:5000/openai"; const payload = { language: language, content: content, diff --git a/client/src/components/PromptInput/PromptInput.jsx b/client/src/components/PromptInput/PromptInput.jsx index c73dcf2..43142bc 100644 --- a/client/src/components/PromptInput/PromptInput.jsx +++ b/client/src/components/PromptInput/PromptInput.jsx @@ -32,7 +32,7 @@ export default function PromptInput() { formData.append("file", file); // Perform the upload using fetch - fetch("http://localhost:5000/image-to-expression", { + fetch("http://127.0.0.1:5000/image-to-expression", { method: "POST", body: formData, })