Spaces:
Running
Running
Update geminisearch.py
Browse files- geminisearch.py +10 -0
geminisearch.py
CHANGED
@@ -13,6 +13,16 @@ google_search_tool = Tool(
|
|
13 |
)
|
14 |
|
15 |
def webSearch(prompt,history):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
|
17 |
combined_prompt = f"Current information: {history}\n\nQuestion: {prompt}"
|
18 |
|
|
|
13 |
)
|
14 |
|
15 |
def webSearch(prompt,history):
|
16 |
+
"""
|
17 |
+
Searches the web using Google Search
|
18 |
+
|
19 |
+
Args:
|
20 |
+
prompt: a string representing the search query
|
21 |
+
history: a placeholder representing query history
|
22 |
+
|
23 |
+
Returns:
|
24 |
+
Search result in natural language
|
25 |
+
"""
|
26 |
|
27 |
combined_prompt = f"Current information: {history}\n\nQuestion: {prompt}"
|
28 |
|