{ "cells": [ { "cell_type": "code", "execution_count": 11, "id": "a1dff932", "metadata": {}, "outputs": [], "source": [ "import requests\n", "\n", "DEFAULT_API_URL = \"https://agents-course-unit4-scoring.hf.space\"\n", "api_url = DEFAULT_API_URL\n", "questions_url = f\"{api_url}/questions\"\n", "\n", "response = requests.get(questions_url, timeout=15)\n", "response.raise_for_status()\n", "questions_data = response.json()\n", "questions_df = pd.DataFrame(questions_data)" ] }, { "cell_type": "code", "execution_count": 90, "id": "445b722e", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
| \n", " | task_id | \n", "question | \n", "Level | \n", "file_name | \n", "Final answer | \n", "
|---|---|---|---|---|---|
| 0 | \n", "8e867cd7-cff9-4e6c-867a-ff5ddc2550be | \n", "How many studio albums were published by Merce... | \n", "1 | \n", "\n", " | 3 | \n", "
| 1 | \n", "a1e91b78-d3d8-4675-bb8d-62741b4b68a6 | \n", "In the video https://www.youtube.com/watch?v=L... | \n", "1 | \n", "\n", " | 3 | \n", "
| 2 | \n", "2d83110e-a098-4ebb-9987-066c06fa42d0 | \n", ".rewsna eht sa \"tfel\" drow eht fo etisoppo eht... | \n", "1 | \n", "\n", " | Right | \n", "
| 3 | \n", "cca530fc-4052-43b2-b130-b30968d8aa44 | \n", "Review the chess position provided in the imag... | \n", "1 | \n", "cca530fc-4052-43b2-b130-b30968d8aa44.png | \n", "Rd5 | \n", "
| 4 | \n", "4fc2f1ae-8625-45b5-ab34-ad4433bc21f8 | \n", "Who nominated the only Featured Article on Eng... | \n", "1 | \n", "\n", " | FunkMonk | \n", "
| 5 | \n", "6f37996b-2ac7-44b0-8e68-6d28256631b4 | \n", "Given this table defining * on the set S = {a,... | \n", "1 | \n", "\n", " | b, e | \n", "
| 6 | \n", "9d191bce-651d-4746-be2d-7ef8ecadb9c2 | \n", "Examine the video at https://www.youtube.com/w... | \n", "1 | \n", "\n", " | Extremely | \n", "
| 7 | \n", "cabe07ed-9eca-40ea-8ead-410ef5e83f91 | \n", "What is the surname of the equine veterinarian... | \n", "1 | \n", "\n", " | Louvrier | \n", "
| 8 | \n", "3cef3a44-215e-4aed-8e3b-b1e3f08063b7 | \n", "I'm making a grocery list for my mom, but she'... | \n", "1 | \n", "\n", " | broccoli, celery, fresh basil, lettuce, sweet ... | \n", "
| 9 | \n", "99c9cc74-fdc8-46c6-8f8d-3ce2d3bfeea3 | \n", "Hi, I'm making a pie but I could use some help... | \n", "1 | \n", "99c9cc74-fdc8-46c6-8f8d-3ce2d3bfeea3.mp3 | \n", "cornstarch, freshly squeezed lemon juice, gran... | \n", "
| 10 | \n", "305ac316-eef6-4446-960a-92d80d542f82 | \n", "Who did the actor who played Ray in the Polish... | \n", "1 | \n", "\n", " | Wojciech | \n", "
| 11 | \n", "f918266a-b3e0-4914-865d-4faa564f1aef | \n", "What is the final numeric output from the atta... | \n", "1 | \n", "f918266a-b3e0-4914-865d-4faa564f1aef.py | \n", "0 | \n", "
| 12 | \n", "3f57289b-8c60-48be-bd80-01f8099ca449 | \n", "How many at bats did the Yankee with the most ... | \n", "1 | \n", "\n", " | 519 | \n", "
| 13 | \n", "1f975693-876d-457b-a649-393859e79bf3 | \n", "Hi, I was out sick from my classes on Friday, ... | \n", "1 | \n", "1f975693-876d-457b-a649-393859e79bf3.mp3 | \n", "132, 133, 134, 197, 245 | \n", "
| 14 | \n", "840bfca7-4f7b-481a-8794-c560c340185d | \n", "On June 6, 2023, an article by Carolyn Collins... | \n", "1 | \n", "\n", " | 80GSFC21M0002 | \n", "
| 15 | \n", "bda648d7-d618-4883-88f4-3466eabd860e | \n", "Where were the Vietnamese specimens described ... | \n", "1 | \n", "\n", " | Saint Petersburg | \n", "
| 16 | \n", "cf106601-ab4f-4af9-b045-5295fe67b37d | \n", "What country had the least number of athletes ... | \n", "1 | \n", "\n", " | CUB | \n", "
| 17 | \n", "a0c07678-e491-4bbc-8f0b-07405144218f | \n", "Who are the pitchers with the number before an... | \n", "1 | \n", "\n", " | Yoshida, Uehara | \n", "
| 18 | \n", "7bd855d8-463d-4ed5-93ca-5fe35145f733 | \n", "The attached Excel file contains the sales of ... | \n", "1 | \n", "7bd855d8-463d-4ed5-93ca-5fe35145f733.xlsx | \n", "89706.00 | \n", "
| 19 | \n", "5a0c1adf-205e-4841-a666-7c3ef95def9d | \n", "What is the first name of the only Malko Compe... | \n", "1 | \n", "\n", " | Claus | \n", "