Commit
•
88231f7
1
Parent(s):
7a4ebff
update endpoint url
Browse files
app.py
CHANGED
@@ -28,7 +28,7 @@ async def fetch_similar_datasets(dataset_id: str, limit: int = 10) -> List[Dict]
|
|
28 |
async def fetch_similar_datasets_by_text(query: str, limit: int = 10) -> List[Dict]:
|
29 |
async with httpx.AsyncClient() as client:
|
30 |
response = await client.post(
|
31 |
-
f"{API_URL}
|
32 |
)
|
33 |
if response.status_code == 200:
|
34 |
results = response.json()["results"]
|
|
|
28 |
async def fetch_similar_datasets_by_text(query: str, limit: int = 10) -> List[Dict]:
|
29 |
async with httpx.AsyncClient() as client:
|
30 |
response = await client.post(
|
31 |
+
f"{API_URL}-by-text", params={"query": query, "n": limit + 1}
|
32 |
)
|
33 |
if response.status_code == 200:
|
34 |
results = response.json()["results"]
|