Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -35,6 +35,9 @@ class WikipediaSearchTool(Tool):
|
|
| 35 |
query = inputs.get("query", "")
|
| 36 |
return self.searcher.search(query)
|
| 37 |
|
|
|
|
|
|
|
|
|
|
| 38 |
|
| 39 |
# Define the system prompt
|
| 40 |
SYSTEM_PROMPT = """You are a general AI assistant. I will ask you a question.
|
|
|
|
| 35 |
query = inputs.get("query", "")
|
| 36 |
return self.searcher.search(query)
|
| 37 |
|
| 38 |
+
# Instantiate tool here, before using in MyAgent
|
| 39 |
+
wikipedia_search_tool = WikipediaSearchTool()
|
| 40 |
+
|
| 41 |
|
| 42 |
# Define the system prompt
|
| 43 |
SYSTEM_PROMPT = """You are a general AI assistant. I will ask you a question.
|