Spaces:
Sleeping
Sleeping
update
Browse files- notebooks/llamaindex.ipynb +0 -50
notebooks/llamaindex.ipynb
CHANGED
|
@@ -702,56 +702,6 @@
|
|
| 702 |
"print(f\"💾 Results saved to: {results_file}\")"
|
| 703 |
]
|
| 704 |
},
|
| 705 |
-
{
|
| 706 |
-
"cell_type": "code",
|
| 707 |
-
"execution_count": null,
|
| 708 |
-
"id": "102667ca",
|
| 709 |
-
"metadata": {},
|
| 710 |
-
"outputs": [
|
| 711 |
-
{
|
| 712 |
-
"name": "stdout",
|
| 713 |
-
"output_type": "stream",
|
| 714 |
-
"text": [
|
| 715 |
-
"✅ Submission successful!\n",
|
| 716 |
-
"Response: {'username': 'laiking', 'score': 30.0, 'correct_count': 6, 'total_attempted': 10, 'message': 'Score calculated successfully: 6/20 total questions answered correctly (10 valid tasks attempted). (1 submitted answers had invalid or duplicate task IDs). High score updated on leaderboard.', 'timestamp': '2025-06-26T10:20:32.410900+00:00'}\n"
|
| 717 |
-
]
|
| 718 |
-
}
|
| 719 |
-
],
|
| 720 |
-
"source": [
|
| 721 |
-
"submit = {\n",
|
| 722 |
-
" \"username\": \"laiking\",\n",
|
| 723 |
-
" \"agent_code\": \"https://huggingface.co/spaces/agents-course/tree/main\",\n",
|
| 724 |
-
" \"answers\": [\n",
|
| 725 |
-
" {\"task_id\": \"8e867cd7-cff9-4e6c-867a-ff5ddc2550be\", \"submitted_answer\": 3},\n",
|
| 726 |
-
" {\"task_id\": \"a1e91b78-d3d8-4675-bb8d-62741b4b68a6\", \"submitted_answer\": 30},\n",
|
| 727 |
-
" {\"task_id\": \"2d83110e-a098-4ebb-9987-066c06fa42d0\", \"submitted_answer\": \"right\"},\n",
|
| 728 |
-
" {\"task_id\": \"cca530fc-4052-43b2-b130-b30968d8aa44\", \"submitted_answer\": \"Qxc3\"},\n",
|
| 729 |
-
" {\"task_id\": \"4fc2f1ae-8625-45b5-ab34-ad4433bc21f8\", \"submitted_answer\": \"funkmonk\"},\n",
|
| 730 |
-
" {\"task_id\": \"6f37996b-2ac7-44b0-8e68-6d28256631b4\", \"submitted_answer\": \"b,e\"},\n",
|
| 731 |
-
"\n",
|
| 732 |
-
" {\"task_id\": \"9d191bce-651d-4746-be2d-7ef8ecadb9c2\", \"submitted_answer\": \"extremely\"},\n",
|
| 733 |
-
" {\"task_id\": \"cabe07ed-9eca-40ea-8ead-410ef5e83f91\", \"submitted_answer\": \"louvrier\"},\n",
|
| 734 |
-
" {\"task_id\": \"305ac316-eef6-4446-960a-92d80d542f8\", \"submitted_answer\": \"wojciech\"},\n",
|
| 735 |
-
" {\"task_id\": \"1f975693-876d-457b-a649-393859e79bf3\", \"submitted_answer\": \"132,133,134,197,245\"},\n",
|
| 736 |
-
" {\"task_id\": \"bda648d7-d618-4883-88f4-3466eabd860e\", \"submitted_answer\": \"Saint Petersburg\"},\n",
|
| 737 |
-
" {\"task_id\": \"bda648d7-d618-4883-88f4-3466eabd860e\", \"submitted_answer\": \"Saint Petersburg\"},\n",
|
| 738 |
-
" \n",
|
| 739 |
-
" ]\n",
|
| 740 |
-
"}\n",
|
| 741 |
-
"\n",
|
| 742 |
-
"submit_response = HFAgentsCourseAPI.submit_agent_answers(\n",
|
| 743 |
-
" username=submit[\"username\"],\n",
|
| 744 |
-
" agent_code=submit[\"agent_code\"],\n",
|
| 745 |
-
" answers=submit[\"answers\"]\n",
|
| 746 |
-
")\n",
|
| 747 |
-
"\n",
|
| 748 |
-
"if submit_response:\n",
|
| 749 |
-
" print(\"✅ Submission successful!\")\n",
|
| 750 |
-
" print(f\"Response: {submit_response}\")\n",
|
| 751 |
-
"else:\n",
|
| 752 |
-
" print(\"❌ Submission failed or no response received.\")"
|
| 753 |
-
]
|
| 754 |
-
},
|
| 755 |
{
|
| 756 |
"cell_type": "code",
|
| 757 |
"execution_count": 16,
|
|
|
|
| 702 |
"print(f\"💾 Results saved to: {results_file}\")"
|
| 703 |
]
|
| 704 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 705 |
{
|
| 706 |
"cell_type": "code",
|
| 707 |
"execution_count": 16,
|