Spaces:
Sleeping
Sleeping
Tuchuanhuhuhu
commited on
Commit
·
826ee82
1
Parent(s):
066e779
微调爬虫版Google Search用语
Browse files
modules/models/ChuanhuAgent.py
CHANGED
@@ -93,7 +93,7 @@ class ChuanhuAgent_Client(BaseLLMModel):
|
|
93 |
)
|
94 |
|
95 |
def google_search_simple(self, query):
|
96 |
-
results = [{"title": i.title, "
|
97 |
return str(results)
|
98 |
|
99 |
def handle_file_upload(self, files, chatbot, language):
|
|
|
93 |
)
|
94 |
|
95 |
def google_search_simple(self, query):
|
96 |
+
results = [{"title": i.title, "link": i.url, "snippet": i.description} for i in search(query, advanced=True)]
|
97 |
return str(results)
|
98 |
|
99 |
def handle_file_upload(self, files, chatbot, language):
|