Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,12 +20,6 @@ class AgentState(TypedDict):
|
|
| 20 |
|
| 21 |
class SuperSmartAgent:
|
| 22 |
def __init__(self):
|
| 23 |
-
self.wiki_wiki = wikipediaapi.Wikipedia(
|
| 24 |
-
language='en',
|
| 25 |
-
extract_format=wikipediaapi.ExtractFormat.WIKI,
|
| 26 |
-
user_agent='SelimResearchAgent/1.0'
|
| 27 |
-
)
|
| 28 |
-
self.current_context = "" # Initialize current_context for use in methods that need it
|
| 29 |
self.graph = self._build_graph() # Build graph after initializing wiki_wiki
|
| 30 |
|
| 31 |
def _build_graph(self):
|
|
|
|
| 20 |
|
| 21 |
class SuperSmartAgent:
|
| 22 |
def __init__(self):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
self.graph = self._build_graph() # Build graph after initializing wiki_wiki
|
| 24 |
|
| 25 |
def _build_graph(self):
|