Spaces:
Sleeping
Sleeping
modifies params
Browse files
app.py
CHANGED
|
@@ -17,7 +17,8 @@ suggestion_searcher = SuggestionSearcher(collection_name=COLLECTION_NAME_SUGGEST
|
|
| 17 |
ALLOWED_API_KEY = str(API_KEY)
|
| 18 |
|
| 19 |
@app.get("/api/search")
|
| 20 |
-
async def search(q: str
|
|
|
|
| 21 |
query = q.lower()
|
| 22 |
xss = nh3.clean(query)
|
| 23 |
# data = await doc_searcher.search(text=xss,type=type,law_type=lt,offset=offset)
|
|
|
|
| 17 |
ALLOWED_API_KEY = str(API_KEY)
|
| 18 |
|
| 19 |
@app.get("/api/search")
|
| 20 |
+
async def search(q: str):
|
| 21 |
+
# q: str, type: int, lt: str | None = None, offset: int = 0
|
| 22 |
query = q.lower()
|
| 23 |
xss = nh3.clean(query)
|
| 24 |
# data = await doc_searcher.search(text=xss,type=type,law_type=lt,offset=offset)
|