Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
•
1d40966
1
Parent(s):
6a4b44c
update model
Browse files
main.py
CHANGED
@@ -212,7 +212,7 @@ async def api_query_by_text(query: str, n: int = Query(default=10, ge=1, le=100)
|
|
212 |
async def api_search_viewer(query: str, n: int = Query(default=10, ge=1, le=100)):
|
213 |
try:
|
214 |
embedding_function = SentenceTransformerEmbeddingFunction(
|
215 |
-
model_name="davanstrien/dataset-viewer-descriptions
|
216 |
trust_remote_code=True,
|
217 |
)
|
218 |
collection = client.get_collection(
|
|
|
212 |
async def api_search_viewer(query: str, n: int = Query(default=10, ge=1, le=100)):
|
213 |
try:
|
214 |
embedding_function = SentenceTransformerEmbeddingFunction(
|
215 |
+
model_name="davanstrien/query-to-dataset-viewer-descriptions",
|
216 |
trust_remote_code=True,
|
217 |
)
|
218 |
collection = client.get_collection(
|