Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -98,11 +98,11 @@ class SuperSmartAgent:
|
|
| 98 |
|
| 99 |
graph = builder.compile()
|
| 100 |
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
|
| 107 |
|
| 108 |
########################################
|
|
|
|
| 98 |
|
| 99 |
graph = builder.compile()
|
| 100 |
|
| 101 |
+
def __call__(self, question: str) -> str:
|
| 102 |
+
# use self.graph to process the question
|
| 103 |
+
state = {"question": question}
|
| 104 |
+
result = self.graph.invoke(state)
|
| 105 |
+
return result.get("response", "No answer generated.")
|
| 106 |
|
| 107 |
|
| 108 |
########################################
|