Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
•
54cac13
1
Parent(s):
4d185df
rename endpoint
Browse files
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("/
|
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:
|