Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -9,6 +9,12 @@ import pandas as pd
|
|
9 |
DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
10 |
|
11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
def run_and_submit_all( profile: gr.OAuthProfile | None):
|
13 |
"""
|
14 |
Fetches all questions, runs the BasicAgent on them, submits all answers,
|
|
|
9 |
DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
10 |
|
11 |
|
12 |
+
class BasicAgent:
|
13 |
+
"""A langgraph agent."""
|
14 |
+
def __init__(self):
|
15 |
+
print("BasicAgent initialized.")
|
16 |
+
self.graph = build_graph()
|
17 |
+
|
18 |
def run_and_submit_all( profile: gr.OAuthProfile | None):
|
19 |
"""
|
20 |
Fetches all questions, runs the BasicAgent on them, submits all answers,
|