Skip to content

Commit

Permalink
feat: edit endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
OmarNasser213 committed Nov 27, 2024
1 parent 2b1fe8c commit 6705dcb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/Pages/Annotate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const Annotate = () => {
const blob = await fetch(selectedImage).then((res) => res.blob());
formData.append('image', blob);

const response = await fetch('http://127.0.0.1:5001/api/images/upload', { // Update the URL to match your backend
const response = await fetch('http://127.0.0.1:5001/predict', { // Update the URL to match your backend
method: 'POST',
body: formData,
});
Expand Down
2 changes: 1 addition & 1 deletion object-detector/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

image_predictions = {}

@app.route('/api/images/upload', methods=['POST'])
@app.route('/predict', methods=['POST'])
def upload_image():
# Get the image from the request
file = request.files['image']
Expand Down

0 comments on commit 6705dcb

Please sign in to comment.