|
@@ -96,7 +96,7 @@ async def upload_images(image: UploadFile = File(None),id: str = None,url: str =
|
|
|
|
|
|
# file:image,form:limit,table_name
|
|
|
@app.post('/img/search')
|
|
|
-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.
|