DTStudios commited on
Commit
1afcba5
·
verified ·
1 Parent(s): b2c820a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -25,7 +25,7 @@ def __init__(self, max_results=10, **kwargs):
25
  ) from e
26
  self.ddgs = DDGS(**kwargs)
27
 
28
- def forward(self, query: str) -> str:
29
  results = self.ddgs.text(query, max_results=self.max_results)
30
  if len(results) == 0:
31
  raise Exception("No results found! Try a less restrictive/shorter query.")
 
25
  ) from e
26
  self.ddgs = DDGS(**kwargs)
27
 
28
+ def forward(self, query: str) -> str:
29
  results = self.ddgs.text(query, max_results=self.max_results)
30
  if len(results) == 0:
31
  raise Exception("No results found! Try a less restrictive/shorter query.")