Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -67,5 +67,5 @@ async def api_embedding(args: dict):
|
|
67 |
|
68 |
@app.post("/search")
|
69 |
async def api_search(args: dict):
|
70 |
-
result = fn.search(args['name'], args['query'], args['num'] if 'num' in args else 3)
|
71 |
return {'result': result}
|
|
|
67 |
|
68 |
@app.post("/search")
|
69 |
async def api_search(args: dict):
|
70 |
+
result = fn.search(args['name'], args['query'], int(args['num']) if 'num' in args else 3)
|
71 |
return {'result': result}
|