Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -28,12 +28,10 @@ class BasicAgent:
|
|
28 |
|
29 |
def __call__(self, question: str) -> str:
|
30 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
31 |
-
fixed_answer = self.
|
32 |
print(f"Agent returning answer: {fixed_answer}")
|
33 |
return fixed_answer
|
34 |
|
35 |
-
#def process_request(self, question: str) -> str:
|
36 |
-
#return "This is a default answer."
|
37 |
|
38 |
class SearchAgent(BasicAgent):
|
39 |
def __init__(self):
|
|
|
28 |
|
29 |
def __call__(self, question: str) -> str:
|
30 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
31 |
+
fixed_answer = self.process_request(question)
|
32 |
print(f"Agent returning answer: {fixed_answer}")
|
33 |
return fixed_answer
|
34 |
|
|
|
|
|
35 |
|
36 |
class SearchAgent(BasicAgent):
|
37 |
def __init__(self):
|