Scott Cogan
commited on
Commit
·
94720ac
1
Parent(s):
ef598ee
gradio
Browse files
app.py
CHANGED
|
@@ -229,7 +229,7 @@ class BasicAgent:
|
|
| 229 |
return messages["messages"][-1].content if messages["messages"] else fixed_answer
|
| 230 |
|
| 231 |
|
| 232 |
-
def run_and_submit_all(
|
| 233 |
"""
|
| 234 |
Fetches all questions, runs the BasicAgent on them, submits all answers,
|
| 235 |
and displays the results.
|
|
@@ -238,7 +238,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 238 |
space_id = os.getenv("SPACE_ID") # Get the SPACE_ID for sending link to the code
|
| 239 |
|
| 240 |
if profile:
|
| 241 |
-
username=
|
| 242 |
print(f"User logged in: {username}")
|
| 243 |
else:
|
| 244 |
print("User not logged in.")
|
|
|
|
| 229 |
return messages["messages"][-1].content if messages["messages"] else fixed_answer
|
| 230 |
|
| 231 |
|
| 232 |
+
def run_and_submit_all(profile):
|
| 233 |
"""
|
| 234 |
Fetches all questions, runs the BasicAgent on them, submits all answers,
|
| 235 |
and displays the results.
|
|
|
|
| 238 |
space_id = os.getenv("SPACE_ID") # Get the SPACE_ID for sending link to the code
|
| 239 |
|
| 240 |
if profile:
|
| 241 |
+
username = str(profile)
|
| 242 |
print(f"User logged in: {username}")
|
| 243 |
else:
|
| 244 |
print("User not logged in.")
|