@@ -17,7 +17,7 @@
# url || image 参数必传
@app.post('/img/upload')
-# file:image,form:limit,table_name
+# file:image,query:limit,table_name
# image参数必传
@app.post('/img/search')
@@ -96,7 +96,7 @@ async def upload_images(image: UploadFile = File(None),id: str = None,url: str =
# file:image,form:limit,table_name
-async def search_images(image: UploadFile = File(...), limit: int = Form(TOP_K), table_name: str = None):
+async def search_images(image: UploadFile = File(...), limit: int = TOP_K, table_name: str = None):
# Search the upload image in Milvus/MySQL
try:
# Save the upload image to server.