Skip to content

Commit

Permalink
updated api url
Browse files Browse the repository at this point in the history
  • Loading branch information
Neo-Zenith committed Jan 21, 2024
1 parent 98975b3 commit c8119ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/src/components/CodeEditor/CodeEditor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/PromptInput/PromptInput.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})
Expand Down

0 comments on commit c8119ed

Please sign in to comment.