Update main.py
Browse files
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 =
|
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 |
|