thenativefox commited on
Commit
3b6cefd
·
verified ·
1 Parent(s): 90d45b4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -14,14 +14,14 @@ DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
14
  # ----- THIS IS WERE YOU CAN BUILD WHAT YOU WANT ------
15
 
16
  # TODO: delete
17
- # class BasicAgent:
18
- # def __init__(self):
19
- # print("BasicAgent initialized.")
20
- # def __call__(self, question: str) -> str:
21
- # print(f"Agent received question (first 50 chars): {question[:50]}...")
22
- # fixed_answer = "This is a default answer."
23
- # print(f"Agent returning fixed answer: {fixed_answer}")
24
- # return fixed_answer
25
 
26
  def run_and_submit_all( profile: gr.OAuthProfile | None):
27
  """
 
14
  # ----- THIS IS WERE YOU CAN BUILD WHAT YOU WANT ------
15
 
16
  # TODO: delete
17
+ class BasicAgent:
18
+ def __init__(self):
19
+ print("BasicAgent initialized.")
20
+ def __call__(self, question: str) -> str:
21
+ print(f"Agent received question (first 50 chars): {question[:50]}...")
22
+ fixed_answer = "This is a default answer."
23
+ print(f"Agent returning fixed answer: {fixed_answer}")
24
+ return fixed_answer
25
 
26
  def run_and_submit_all( profile: gr.OAuthProfile | None):
27
  """