KingNish commited on
Commit
1713ae7
·
verified ·
1 Parent(s): 92647eb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -27,7 +27,6 @@ async def get_suggestions(q: str):
27
  async def search(
28
  q: str,
29
  max_results: int = 10,
30
- timelimit: Optional[str] = None,
31
  safesearch: str = "moderate",
32
  region: str = "wt-wt",
33
  backend: str = "api"
@@ -35,7 +34,7 @@ async def search(
35
  """Perform a text search."""
36
  try:
37
  with WEBS() as webs:
38
- results = webs.text(keywords=q, region=region, safesearch=safesearch, timelimit=timelimit, backend=backend, max_results=max_results)
39
  # Extract the data you want to display
40
  search_results = [
41
  {
 
27
  async def search(
28
  q: str,
29
  max_results: int = 10,
 
30
  safesearch: str = "moderate",
31
  region: str = "wt-wt",
32
  backend: str = "api"
 
34
  """Perform a text search."""
35
  try:
36
  with WEBS() as webs:
37
+ results = webs.text(keywords=q, region=region, safesearch=safesearch, backend=backend, max_results=max_results)
38
  # Extract the data you want to display
39
  search_results = [
40
  {