Spaces:
Sleeping
Sleeping
shan gao
commited on
Commit
·
6ee21c1
1
Parent(s):
2ce7947
add agent and application file
Browse files
app.py
CHANGED
|
@@ -10,7 +10,7 @@ from agent import build_graph
|
|
| 10 |
DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
| 11 |
|
| 12 |
|
| 13 |
-
def run_and_submit_all( profile:
|
| 14 |
"""
|
| 15 |
Fetches all questions, runs the BasicAgent on them, submits all answers,
|
| 16 |
and displays the results.
|
|
@@ -19,7 +19,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 19 |
space_id = os.getenv("SPACE_ID") # Get the SPACE_ID for sending link to the code
|
| 20 |
|
| 21 |
if profile:
|
| 22 |
-
username=
|
| 23 |
print(f"User logged in: {username}")
|
| 24 |
else:
|
| 25 |
print("User not logged in.")
|
|
|
|
| 10 |
DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
| 11 |
|
| 12 |
|
| 13 |
+
def run_and_submit_all( profile: bool = True):
|
| 14 |
"""
|
| 15 |
Fetches all questions, runs the BasicAgent on them, submits all answers,
|
| 16 |
and displays the results.
|
|
|
|
| 19 |
space_id = os.getenv("SPACE_ID") # Get the SPACE_ID for sending link to the code
|
| 20 |
|
| 21 |
if profile:
|
| 22 |
+
username= "darwinha"
|
| 23 |
print(f"User logged in: {username}")
|
| 24 |
else:
|
| 25 |
print("User not logged in.")
|