Spaces:
Runtime error

dzenzzz commited on
Commit
c4d1552
·
1 Parent(s): 8f5a157

modifies params

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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, type: int, lt: str | None = None, offset: int = 0):
 
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)