Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,9 @@ class BasicAgent:
|
|
14 |
def __init__(self):
|
15 |
print("BasicAgent initialized.")
|
16 |
def __call__(self, question: str) -> str:
|
17 |
-
|
|
|
|
|
18 |
fixed_answer = "This is a default answer."
|
19 |
print(f"Agent returning fixed answer: {fixed_answer}")
|
20 |
return fixed_answer
|
|
|
14 |
def __init__(self):
|
15 |
print("BasicAgent initialized.")
|
16 |
def __call__(self, question: str) -> str:
|
17 |
+
n = 50
|
18 |
+
if (question.startswith("How many studio albums were published by Mercedes")) n = len(question)
|
19 |
+
print(f"Agent received question (first 50 chars): {question[:n]}...")
|
20 |
fixed_answer = "This is a default answer."
|
21 |
print(f"Agent returning fixed answer: {fixed_answer}")
|
22 |
return fixed_answer
|