Skip to content

Commit 3d8ed76

Browse files
committed
revert url
1 parent ca3551d commit 3d8ed76

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

client/src/components/CodeEditor/CodeEditor.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ export default function CodeEditor({ defaultLanguage }) {
237237
function handleGenerate() {
238238
let content = sanitizeInput(code);
239239

240-
const url = "http://127.0.0.1:5000/openai";
240+
const url = "http://localhost:5000/openai";
241241
const payload = {
242242
language: language,
243243
content: content,

client/src/components/PromptInput/PromptInput.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default function PromptInput() {
3232
formData.append("file", file);
3333

3434
// Perform the upload using fetch
35-
fetch("http://127.0.0.1:5000/image-to-expression", {
35+
fetch("http://localhost:5000/image-to-expression", {
3636
method: "POST",
3737
body: formData,
3838
})

0 commit comments

Comments
 (0)