Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -93,7 +93,10 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 93 |
if not answers_payload:
|
| 94 |
print("Agent did not produce any answers to submit.")
|
| 95 |
return "Agent did not produce any answers to submit.", pd.DataFrame(results_log)
|
| 96 |
-
|
|
|
|
|
|
|
|
|
|
| 97 |
# 4. Prepare Submission
|
| 98 |
submission_data = {"username": username.strip(), "agent_code": agent_code, "answers": answers_payload}
|
| 99 |
status_update = f"Agent finished. Submitting {len(answers_payload)} answers for user '{username}'..."
|
|
|
|
| 93 |
if not answers_payload:
|
| 94 |
print("Agent did not produce any answers to submit.")
|
| 95 |
return "Agent did not produce any answers to submit.", pd.DataFrame(results_log)
|
| 96 |
+
|
| 97 |
+
agent_code = f"https://huggingface.co/spaces/{space_id}/tree/main"
|
| 98 |
+
print(agent_code)
|
| 99 |
+
|
| 100 |
# 4. Prepare Submission
|
| 101 |
submission_data = {"username": username.strip(), "agent_code": agent_code, "answers": answers_payload}
|
| 102 |
status_update = f"Agent finished. Submitting {len(answers_payload)} answers for user '{username}'..."
|