Ashrafb commited on
Commit
47080b7
·
verified ·
1 Parent(s): 2844d41

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -21,7 +21,7 @@ def generate_caption(image_path):
21
  return result
22
 
23
  # Route to handle image uploads and generate captions
24
- @app.post("/generate_caption/")
25
  async def generate_image_caption(image: UploadFile = File(...)):
26
  try:
27
  # Save the uploaded image to a temporary file
 
21
  return result
22
 
23
  # Route to handle image uploads and generate captions
24
+ @app.post("/uploadfile/")
25
  async def generate_image_caption(image: UploadFile = File(...)):
26
  try:
27
  # Save the uploaded image to a temporary file