mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
fix no resualt bugs (#1448)
### What problem does this PR solve? ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -57,6 +57,5 @@ class DuckDuckGoSearch(ComponentBase, ABC):
|
||||
duck_res = ['<a href="' + i["url"] + '">' + i["title"] + '</a> ' + i["body"] for i in
|
||||
ddgs.news(ans, max_results=self._param.top_n)]
|
||||
|
||||
dr = pd.DataFrame(duck_res, columns=['content'])
|
||||
print(">>>>>>>>>>>>>>>>>>>>>>>>>>\n", dr)
|
||||
return dr
|
||||
print(duck_res, ":::::::::::::::::::::::::::::::::")
|
||||
return DuckDuckGoSearch.be_output(duck_res)
|
||||
Reference in New Issue
Block a user