Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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:
|