cnmoro commited on
Commit
780f813
·
verified ·
1 Parent(s): 7a1f86b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -13,7 +13,7 @@ model = EmbeddingModel(use_quantized_onnx_model=True)
13
 
14
  def fetch_links(query, max_results=5):
15
  with DDGS() as ddgs:
16
- return [r['href'] for r in ddgs.text(query, max_results=max_results)]
17
 
18
  def fetch_texts(links):
19
  with multiprocessing.Pool(5) as pool:
 
13
 
14
  def fetch_links(query, max_results=5):
15
  with DDGS() as ddgs:
16
+ return [r['href'] for r in ddgs.text(keywords=query, max_results=max_results)]
17
 
18
  def fetch_texts(links):
19
  with multiprocessing.Pool(5) as pool: