shsad commited on
Commit
67230e8
·
verified ·
1 Parent(s): 39e0975

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py CHANGED
@@ -9,6 +9,14 @@ import pandas as pd
9
  # --- Constants ---
10
  DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
11
 
 
 
 
 
 
 
 
 
12
 
13
  def run_and_submit_all( profile: gr.OAuthProfile | None):
14
  """
 
9
  # --- Constants ---
10
  DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
11
 
12
+ class BasicAgent:
13
+ def __init__(self):
14
+ print("BasicAgent initialized.")
15
+ def __call__(self, question: str) -> str:
16
+ print(f"Agent received question (first 50 chars): {question[:50]}...")
17
+ fixed_answer = "This is a default answer."
18
+ print(f"Agent returning fixed answer: {fixed_answer}")
19
+ return fixed_answer
20
 
21
  def run_and_submit_all( profile: gr.OAuthProfile | None):
22
  """