Spaces:
Sleeping
Sleeping
Teste Basic AGent
Browse files
app.py
CHANGED
@@ -68,7 +68,7 @@ DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
|
68 |
|
69 |
# --- Basic Agent Definition ---
|
70 |
# ----- THIS IS WERE YOU CAN BUILD WHAT YOU WANT ------
|
71 |
-
class BasicAgent:
|
72 |
def __init__(self):
|
73 |
print("BasicAgent initialized.")
|
74 |
def __call__(self, question: str) -> str:
|
@@ -76,7 +76,7 @@ class BasicAgent:
|
|
76 |
fixed_answer = "This is a default answer."
|
77 |
print(f"Agent returning fixed answer: {fixed_answer}")
|
78 |
return fixed_answer
|
79 |
-
|
80 |
def run_and_submit_all( profile: gr.OAuthProfile | None):
|
81 |
"""
|
82 |
Fetches all questions, runs the BasicAgent on them, submits all answers,
|
|
|
68 |
|
69 |
# --- Basic Agent Definition ---
|
70 |
# ----- THIS IS WERE YOU CAN BUILD WHAT YOU WANT ------
|
71 |
+
"""class BasicAgent:
|
72 |
def __init__(self):
|
73 |
print("BasicAgent initialized.")
|
74 |
def __call__(self, question: str) -> str:
|
|
|
76 |
fixed_answer = "This is a default answer."
|
77 |
print(f"Agent returning fixed answer: {fixed_answer}")
|
78 |
return fixed_answer
|
79 |
+
"""
|
80 |
def run_and_submit_all( profile: gr.OAuthProfile | None):
|
81 |
"""
|
82 |
Fetches all questions, runs the BasicAgent on them, submits all answers,
|