davanstrien HF staff commited on
Commit
54cac13
1 Parent(s): 4d185df

rename endpoint

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -87,7 +87,7 @@ async def try_get_card(hub_id: str) -> Optional[str]:
87
  return None
88
 
89
 
90
- @app.get("/query", response_model=Optional[QueryResponse])
91
  @cache(ttl="1h")
92
  async def api_query_dataset(dataset_id: str, n: int = Query(default=10, ge=1, le=100)):
93
  try:
 
87
  return None
88
 
89
 
90
+ @app.get("/similar", response_model=Optional[QueryResponse])
91
  @cache(ttl="1h")
92
  async def api_query_dataset(dataset_id: str, n: int = Query(default=10, ge=1, le=100)):
93
  try: