Update app.py
Browse files
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 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 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 |
"""
|