Spaces:
Sleeping
Sleeping
Update third.py
Browse files
third.py
CHANGED
|
@@ -23,7 +23,7 @@ async def main(editable_output2, keyword_id):
|
|
| 23 |
tools = [
|
| 24 |
Tool(
|
| 25 |
name="Search",
|
| 26 |
-
func=lambda input_dict: search.run(input_dict) if isinstance(input_dict, str) else search.run(input_dict
|
| 27 |
description="useful for when you need to answer questions about current events"
|
| 28 |
),
|
| 29 |
]
|
|
|
|
| 23 |
tools = [
|
| 24 |
Tool(
|
| 25 |
name="Search",
|
| 26 |
+
func=lambda input_dict: search.run(input_dict) if isinstance(input_dict, str) else search.run(input_dict.get("query", input_dict.get("value"))),
|
| 27 |
description="useful for when you need to answer questions about current events"
|
| 28 |
),
|
| 29 |
]
|