aubrigene949 commited on
Commit
15fed98
·
verified ·
1 Parent(s): dc19e53

Update app.py

Browse files

Switched back to fixed_answer to see if this changes the 429 error code (too many requests for questions)

Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -39,8 +39,8 @@ class BasicAgent:
39
  print("BasicAgent initialized.")
40
  def __call__(self, question: str) -> str:
41
  print(f"Agent received question (first 50 chars): {question[:50]}...")
42
- # fixed_answer = "This is a default answer."
43
- fixed_answer = agent.run(question)
44
  print(f"Agent returning fixed answer: {fixed_answer}")
45
  return fixed_answer
46
 
 
39
  print("BasicAgent initialized.")
40
  def __call__(self, question: str) -> str:
41
  print(f"Agent received question (first 50 chars): {question[:50]}...")
42
+ fixed_answer = "This is a default answer."
43
+ # fixed_answer = agent.run(question)
44
  print(f"Agent returning fixed answer: {fixed_answer}")
45
  return fixed_answer
46