Ashrafb commited on
Commit
1ad680e
·
verified ·
1 Parent(s): 322247c

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -35,7 +35,7 @@ async def save_upload_file(upload_file: UploadFile) -> str:
35
 
36
 
37
  @app.post("/get_caption")
38
- async def get_caption(image: UploadFile = File(...), context: str = None):
39
  # Save the uploaded image to a temporary file
40
  temp_file_path = await save_upload_file(image)
41
 
 
35
 
36
 
37
  @app.post("/get_caption")
38
+ async def get_caption(image: UploadFile = File(...), context: str = Form(...)):
39
  # Save the uploaded image to a temporary file
40
  temp_file_path = await save_upload_file(image)
41