Albannach58 commited on
Commit
caa73da
·
verified ·
1 Parent(s): 6f61eac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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
- print(f"Agent received question (first 50 chars): {question[:50]}...")
 
 
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