Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,8 @@ class BasicAgent:
|
|
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"))
|
|
|
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}")
|
|
|
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")):
|
19 |
+
n = len(question)
|
20 |
print(f"Agent received question (first 50 chars): {question[:n]}...")
|
21 |
fixed_answer = "This is a default answer."
|
22 |
print(f"Agent returning fixed answer: {fixed_answer}")
|