username
stringlengths 1
118
| score
float64 0
100
| timestamp
stringdate 2025-04-24 16:18:04
2025-08-22 14:27:00
| code
stringlengths 10
42.3k
|
---|---|---|---|
marksml
| 0 |
2025-07-05T17:05:41.724476+00:00
|
https://huggingface.co/spaces/marksml/agents_course_final_assignment/tree/main
|
nurcom
| 0 |
2025-07-05T17:08:00.672891+00:00
|
https://huggingface.co/spaces/None/tree/main
|
LetsSeeifThisWorks
| 0 |
2025-07-05T17:18:04.569294+00:00
|
https://huggingface.co/spaces/agents-course/Final_Assignment_Template/tree/main
|
naoufalcb
| 0 |
2025-07-05T17:30:52.977000+00:00
|
https://huggingface.co/spaces/agents-course/Final_Assignment_Template/tree/main
|
devpramod-intel
| 65 |
2025-07-05T19:45:47.337606+00:00
|
https://github.com/devpramod/gaia-benchmark-smol.git
|
jbasurtod
| 30 |
2025-07-05T19:46:43.656177+00:00
|
https://huggingface.co/spaces/jbasurtod/First_agent_template/tree/main
|
tornadoc
| 25 |
2025-07-05T22:51:46.438630+00:00
|
https://huggingface.co/spaces/None/tree/main
|
PaulZarudnev
| 40 |
2025-07-06T00:17:30.578398+00:00
|
https://huggingface.co/spaces/None/tree/main
|
jdwh08s
| 45 |
2025-07-06T00:36:05.061790+00:00
|
https://huggingface.co/spaces/jdwh08s/HF_Agents_Space/tree/main
|
meinvlv
| 90 |
2025-07-06T00:53:42.425604+00:00
|
https://huggingface.co/spaces/meinvlv/personal_agent_starter/tree/main
|
Barbackaluder
| 0 |
2025-07-06T03:02:33.103059+00:00
|
https://huggingface.co/spaces/agents-course/Final_Assignment_Template/tree/main
|
asvs
| 35 |
2025-07-06T03:27:07.011946+00:00
|
30% GAIA v9.0 - Ultra-optimized search + perfect extraction + zero hardcoding = GUARANTEED 30%!
|
satznova
| 5 |
2025-07-06T06:19:33.171273+00:00
|
https://huggingface.co/spaces/satznova/agent-ai-gaia/tree/main
|
lishenyin
| 30 |
2025-07-06T08:33:48.952882+00:00
|
https://huggingface.co/spaces/lishenyin/Final_Assignment_Template/tree/main
|
arunSri
| 5 |
2025-07-06T08:45:11.317542+00:00
|
https://huggingface.co/spaces/None/tree/main
|
leBoltzmann
| 80 |
2025-07-06T09:19:08.226775+00:00
|
https://huggingface.co/spaces/fisherman611/gaia-agent/tree/main
|
rprabhat
| 0 |
2025-07-06T10:13:48.292417+00:00
|
https://huggingface.co/spaces/rprabhat/Final_Assignment_Template/tree/main
|
shuvrofaheem
| 80 |
2025-07-06T10:19:42.697351+00:00
|
https://huggingface.co/spaces/baixianger/RobotPai/tree/main
|
baatar
| 5 |
2025-07-06T11:33:53.932453+00:00
|
https://huggingface.co/spaces/baatar/Final_Agent_Course/tree/main
|
Final_Assignment_Template
| 0 |
2025-07-06T14:52:55.080773+00:00
|
https://huggingface.co/spaces/chinnarouge/Final_Assignment_Template/tree/main
|
yw1
| 0 |
2025-07-06T15:20:16.964146+00:00
|
https://huggingface.co/spaces/agents-course/Final_Assignment_Template/tree/main
|
AllIllusion
| 95 |
2025-07-06T16:00:40.580316+00:00
|
https://huggingface.co/spaces/AllIllusion/Agentic_RAG_4_GAIA/tree/main
|
oblivious
| 30 |
2025-07-06T16:13:40.437204+00:00
|
import requests
from huggingface_hub import login
import json
import os
import argparse
from smolagents import CodeAgent, LiteLLMModel, PythonInterpreterTool, WebSearchTool
class GAIAAgent:
def __init__(self, hf_token=None):
self.base_url = "https://agents-course-unit4-scoring.hf.space"
# Initialize model - using Ollama with qwen3:4b-q4_K_M
self.model = LiteLLMModel(
#model_id="ollama/qwen2.5-coder:3b-instruct-q5_K_M",
#api_base="http://100.101.186.72:11434",
model_id="openai/gpt-4.1-mini"
)
# Initialize tools for complex reasoning
self.tools = [
PythonInterpreterTool(), # For calculations and data processing
WebSearchTool(), # For information retrieval
]
# Create the agent
self.agent = CodeAgent(
tools=self.tools,
model=self.model,
max_steps=10, # Allow multiple reasoning steps
)
def __call__(self, question: str) -> str:
"""
Process a question using the smolagents framework.
"""
try:
# Use the agent to process the question
result = self.agent.run(question)
# Extract the final answer from the result
if hasattr(result, 'final_answer'):
return str(result.final_answer)
else:
return str(result)
except Exception as e:
print(f"Error processing question: {e}")
# Fallback to simple pattern matching if agent fails
return self._fallback_answer(question)
def _fallback_answer(self, question: str) -> str:
"""Fallback logic if the agent fails"""
if "what is" in question.lower():
return "I don't know"
elif "how many" in question.lower():
return "1"
elif "when" in question.lower():
return "2024"
elif "where" in question.lower():
return "Earth"
else:
return "Unknown"
def run_and_submit_all(username, hf_token, test_run=False):
"""
Run the agent on all questions and optionally submit the results.
"""
if not test_run and not username:
print("Error: Please provide username for submission")
return False
try:
# Login to Hugging Face (optional, only if token provided)
if hf_token:
login(token=hf_token)
print("Logged into HuggingFace")
else:
print("No HF token provided - proceeding without authentication")
# Initialize agent with HF token
agent = GAIAAgent(hf_token=hf_token)
# Fetch questions
print("Fetching questions from GAIA API...")
response = requests.get(f"{agent.base_url}/questions")
if response.status_code != 200:
print(f"Failed to fetch questions: {response.status_code}")
return False
questions = response.json()
# Process questions and collect answers
answers = []
total_questions = len(questions)
print(f"Processing {total_questions} questions...\n")
for i, question_data in enumerate(questions, 1):
task_id = question_data.get("task_id")
question = question_data.get("question", "")
if not task_id or not question:
continue
print(f"[{i}/{total_questions}] Processing question {task_id}...")
print(f"Question: {question[:100]}{'...' if len(question) > 100 else ''}")
# Get answer from agent
try:
answer = agent(question)
answers.append({
"task_id": task_id,
"submitted_answer": answer
})
print(f"Answer: {answer}")
except Exception as e:
print(f"Error processing question {task_id}: {e}")
continue
print("-" * 80)
# Submit answers or show test results
if test_run:
print(f"\n{'=' * 50}")
print("TEST RUN COMPLETED!")
print("=" * 50)
print(f"Processed {len(answers)} questions")
print("No answers were submitted (test mode)")
print("=" * 50)
return True
else:
print(f"\nSubmitting {len(answers)} answers...")
submission_data = {
"username": username,
"agent_code": open(__file__).read(),
"answers": answers
}
submit_response = requests.post(f"{agent.base_url}/submit", json=submission_data)
if submit_response.status_code == 200:
result = submit_response.json()
score = result.get("score", 0)
correct = result.get("correct", 0)
total = result.get("total", 0)
print("\n" + "=" * 50)
print("SUBMISSION SUCCESSFUL!")
print("=" * 50)
print(f"Score: {score:.2%}")
print(f"Correct: {correct}/{total}")
print("=" * 50)
return True
else:
print(f"\nSubmission failed: {submit_response.status_code} - {submit_response.text}")
return False
except Exception as e:
print(f"Error: {str(e)}")
return False
def main():
parser = argparse.ArgumentParser(description="GAIA Agent Evaluation CLI")
parser.add_argument("--username",
help="Hugging Face username for submission (gets token from HF_TOKEN env var)")
parser.add_argument("--test",
action="store_true",
help="Run in test mode (process questions but don't submit)")
args = parser.parse_args()
print("GAIA Agent Evaluation")
print("=" * 30)
# Determine mode and credentials
test_run = args.test or not args.username
if test_run:
if args.username:
print("Warning: Username provided but running in test mode (no submission)")
print("Mode: TEST RUN (no submission)")
username = args.username
hf_token = None
else:
print("Mode: SUBMISSION")
username = args.username
hf_token = os.environ.get("HF_TOKEN")
if not hf_token:
print("Error: HF_TOKEN environment variable required when username is provided.")
print("Set HF_TOKEN environment variable or use --test for test runs.")
return
print(f"Username: {username or 'Not provided'}")
print(f"Token: {'*' * len(hf_token) if hf_token else 'Not provided'}")
print(f"Test run: {test_run}")
print()
# Run evaluation
success = run_and_submit_all(username, hf_token, test_run)
if success:
print("\nEvaluation completed successfully!")
else:
print("\nEvaluation failed. Check the logs above for details.")
exit(1)
if __name__ == "__main__":
main()
|
KaiserShultz
| 0 |
2025-07-06T16:25:40.788980+00:00
|
https://huggingface.co/spaces/agents-course/Final_Assignment_Template/tree/main
|
Sree59
| 0 |
2025-07-06T16:34:20.526621+00:00
|
https://huggingface.co/spaces/Sree59/Final_Assignment_Template/tree/main
|
SriArun
| 85 |
2025-07-06T17:19:37.698386+00:00
|
https://huggingface.co/spaces/baixianger/RobotPai/tree/main
|
byte-vortex
| 30 |
2025-07-06T18:06:51.511362+00:00
|
https://huggingface.co/spaces/None/tree/main
|
test_user_local
| 10 |
2025-07-06T18:22:45.709063+00:00
|
https://huggingface.co/spaces/None/tree/main
|
szggvxdfnn
| 0 |
2025-07-06T20:34:10.384892+00:00
|
https://huggingface.co/spaces/agents-course/Final_Assignment_Template/tree/main
|
felixmortas
| 100 |
2025-07-06T21:43:04.579921+00:00
|
https://huggingface.co/spaces/felixmortas/Hf_Aagent_Course_Final_Assignment/tree/main
|
limingfei
| 0 |
2025-07-07T01:12:39.227863+00:00
|
https://huggingface.co/spaces/agents-course/Final_Assignment_Template/tree/main
|
mirjamsk
| 35 |
2025-07-07T01:15:20.079654+00:00
|
https://huggingface.co/spaces/mirjamsk/Final_Assignment/tree/main
|
hogeony
| 100 |
2025-07-07T02:22:26.961429+00:00
|
https://huggingface.co/spaces/None/tree/main
|
dominicholcomb
| 30 |
2025-07-07T04:43:03.036884+00:00
|
https://huggingface.co/spaces/dominicholcomb/Final_Assignment_Template/tree/main
|
xdallass
| 0 |
2025-07-07T06:38:33.541025+00:00
|
https://huggingface.co/spaces/agents-course/Final_Assignment_Template/tree/main
|
mansiTeamB
| 90 |
2025-07-07T07:37:34.334881+00:00
|
https://huggingface.co/spaces/mansiTeamB/Assignment_agents/tree/main
|
hari141v
| 40 |
2025-07-07T09:23:40.907009+00:00
|
https://huggingface.co/spaces/hari141v/GAIA_Benchmark_Bot/tree/main
|
pedromcf
| 50 |
2025-07-07T10:18:36.057927+00:00
|
https://github.com/user/repo
|
Hurutta
| 30 |
2025-07-07T11:16:37.918228+00:00
|
https://huggingface.co/spaces/Hurutta/agents_course_final_assignment/tree/main
|
adhiraj135
| 0 |
2025-07-07T11:24:01.378356+00:00
|
https://huggingface.co/spaces/parkuman/gaia-agent/tree/main
|
YassBAI
| 30 |
2025-07-07T12:28:39.043323+00:00
|
https://huggingface.co/spaces/YassBAI/Final_Assignment_Template/tree/main
|
AbdullahSx96
| 0 |
2025-07-07T13:31:21.914220+00:00
|
https://huggingface.co/spaces/agents-course/Final_Assignment_Template/tree/main
|
victorballestin
| 0 |
2025-07-07T13:46:01.743821+00:00
|
hf-agent-v1
|
flomarin88
| 0 |
2025-07-07T14:09:32.902664+00:00
|
https://huggingface.co/spaces/agents-course/Final_Assignment_Template/tree/main
|
Mikelonn
| 30 |
2025-07-07T14:46:17.036494+00:00
|
https://huggingface.co/spaces/Mikelonn/Final_Assignment_Template/tree/main
|
leenad9
| 0 |
2025-07-07T15:23:28.819856+00:00
|
https://huggingface.co/spaces/agents-course/Final_Assignment_Template/tree/main
|
FredrikMa
| 0 |
2025-07-07T15:30:11.533895+00:00
|
https://huggingface.co/spaces/FredrikMa/Final_Assignment_Template/tree/main
|
notNikolaTesla
| 5 |
2025-07-07T17:11:01.027148+00:00
|
https://huggingface.co/spaces/notNikolaTesla/agents-course-final-assessment/tree/main
|
LolaPiresPinto
| 30 |
2025-07-07T17:12:43.575310+00:00
|
https://huggingface.co/spaces/LolaPiresPinto/Final_Assignment_Template/tree/main
|
sriramarepalli
| 35 |
2025-07-07T17:42:54.778144+00:00
|
https://huggingface.co/spaces/andrimner/hf_agents_course_final_hands_on_assessment/tree/main
|
sijoejohn
| 35 |
2025-07-07T17:49:08.216274+00:00
|
https://huggingface.co/spaces/https://huggingface.co/spaces/sijoejohn/tree/main
|
kets-here
| 10 |
2025-07-07T17:57:58.520403+00:00
|
https://huggingface.co/spaces/kets-here/Final_Assignment_Agent/tree/main
|
IntelliGrow
| 10 |
2025-07-07T18:11:06.664746+00:00
|
https://huggingface.co/spaces/IntelliGrow/Final_Assignment_Template/tree/main
|
pavan-d
| 100 |
2025-07-07T20:07:05.411799+00:00
|
https://huggingface.co/spaces/pavan-d/Final_Assignment_Template/tree/main
|
wowthecoder
| 50 |
2025-07-07T21:53:34.285826+00:00
|
https://huggingface.co/spaces/wowthecoder/Agents_Course_Final_Assignment/tree/main
|
rohitchand02
| 85 |
2025-07-08T00:55:14.696953+00:00
|
https://huggingface.co/spaces/baixianger/RobotPai/tree/main
|
zybian
| 0 |
2025-07-08T01:32:34.881665+00:00
|
https://huggingface.co/spaces/None/tree/main
|
smitaezhava
| 30 |
2025-07-08T01:37:12.913604+00:00
|
gaia_agent_unit4
|
chibariyo
| 60 |
2025-07-08T02:31:55.051930+00:00
|
https://huggingface.co/spaces/None/tree/main
|
ksdeexith
| 25 |
2025-07-08T05:13:59.632550+00:00
|
https://huggingface.co/spaces/ksdeexith/Final_Assignment/tree/main
|
anycookie
| 80 |
2025-07-08T07:27:59.487301+00:00
|
https://huggingface.co/spaces/baixianger/RobotPai/tree/main
|
Paolo33
| 5 |
2025-07-08T07:44:27.771629+00:00
|
https://huggingface.co/spaces/Paolo33/Final_Assignment_Template/tree/main
|
dmtri
| 65 |
2025-07-08T07:53:30.256240+00:00
|
https://huggingface.co/spaces/None/tree/main
|
atsafonis
| 40 |
2025-07-08T08:52:28.418141+00:00
|
atsafonis/azed_29
|
nilanjanadebnath
| 5 |
2025-07-08T09:05:17.704083+00:00
|
https://huggingface.co/spaces/nilanjanadebnath/Final_Assignment_Template/tree/main
|
yoda1976
| 90 |
2025-07-08T09:37:30.495233+00:00
|
https://huggingface.co/spaces/yoda1976/Final_Assignment_Template/tree/main
|
meher16
| 0 |
2025-07-08T10:33:48.273583+00:00
|
https://huggingface.co/spaces/meher16/Final_Assignment_Template/tree/main
|
Roman-Ape
| 30 |
2025-07-08T11:23:06.007519+00:00
|
https://huggingface.co/spaces/Roman-Ape/agent-course/tree/main
|
Rodil
| 0 |
2025-07-08T11:23:25.505037+00:00
|
https://huggingface.co/spaces/None/tree/main
|
jankowij
| 70 |
2025-07-08T12:09:54.922471+00:00
|
https://huggingface.co/spaces/jankowij/Final_Assignment_Template_Fixed/tree/main
|
kawish918
| 0 |
2025-07-08T13:15:44.353697+00:00
|
https://huggingface.co/spaces/agents-course/Final_Assignment_Template/tree/main
|
daiton
| 0 |
2025-07-08T13:15:57.338485+00:00
|
https://huggingface.co/spaces/agents-course/Final_Assignment_Template/tree/main
|
thatting
| 35 |
2025-07-08T13:53:50.994025+00:00
|
https://huggingface.co/spaces/thatting/Final_Assignment_Template/tree/main
|
Zuul6
| 90 |
2025-07-08T13:59:13.910690+00:00
|
https://huggingface.co/spaces/baixianger/RobotPai/tree/main
|
rastikko
| 0 |
2025-07-08T14:19:20.915511+00:00
|
https://huggingface.co/spaces/agents-course/Final_Assignment_Template/tree/main
|
SilloVV
| 0 |
2025-07-08T15:44:41.825490+00:00
|
https://huggingface.co/spaces/SilloVV/GAIA_agent_for_certificate/tree/main
|
mrhenu
| 35 |
2025-07-08T18:18:21.928700+00:00
|
HF_Space_Link
|
avimittal30
| 65 |
2025-07-08T18:19:41.397423+00:00
|
https://huggingface.co/spaces/None/tree/main
|
SerotoninRonin
| 40 |
2025-07-08T20:02:31.232953+00:00
|
https://huggingface.co/spaces/SerotoninRonin/Agents_Course_Final_Assignment/tree/main
|
NYCarl
| 90 |
2025-07-08T20:04:19.116143+00:00
|
https://huggingface.co/spaces/None/tree/main
|
navidre
| 0 |
2025-07-08T20:07:21.682018+00:00
|
https://huggingface.co/spaces/None/tree/main
|
beenlanced
| 100 |
2025-07-08T21:33:28.373719+00:00
|
https://huggingface.co/spaces/beenlanced/Final_Assignment_Template/tree/main
|
drew9078
| 0 |
2025-07-08T21:50:53.773845+00:00
|
https://huggingface.co/spaces/agents-course/Final_Assignment_Template/tree/main
|
pkalambe
| 0 |
2025-07-08T21:58:45.374161+00:00
|
https://huggingface.co/spaces/agents-course/Final_Assignment_Template/tree/main
|
Wendyqi
| 0 |
2025-07-09T02:11:53.872290+00:00
|
https://huggingface.co/spaces/agents-course/Final_Assignment_Template/tree/main
|
prshanthreddy
| 0 |
2025-07-09T02:53:29.591073+00:00
|
https://huggingface.co/spaces/agents-course/Final_Assignment_Template/tree/main
|
zhangzhiqi
| 0 |
2025-07-09T03:48:50.047180+00:00
|
LazyAgent01
|
bradyaanderson
| 45 |
2025-07-09T04:02:00.535147+00:00
|
https://huggingface.co/spaces/None/tree/main
|
salik123
| 0 |
2025-07-09T04:19:56.551598+00:00
|
https://huggingface.co/spaces/agents-course/Final_Assignment_Template/tree/main
|
pnm
| 0 |
2025-07-09T04:26:38.414817+00:00
|
https://huggingface.co/spaces/agents-course/Final_Assignment_Template/tree/main
|
avimittal3007
| 40 |
2025-07-09T06:29:08.752436+00:00
|
https://huggingface.co/spaces/avimittal3007/Final_Assignment_Template/tree/main
|
petrov826
| 75 |
2025-07-09T10:02:44.903048+00:00
|
https://huggingface.co/spaces/petrov826/FinalAssignmentTemplate/tree/main
|
mallickram99
| 0 |
2025-07-09T11:11:35.570264+00:00
|
https://huggingface.co/spaces/agents-course/Final_Assignment_Template/tree/main
|
TPey
| 5 |
2025-07-09T11:43:17.962838+00:00
|
https://huggingface.co/spaces/TPey/FinalAssignmentAgent/tree/main
|
shreyaskale25
| 85 |
2025-07-09T12:02:50.896737+00:00
|
https://huggingface.co/spaces/shreyaskale25/AgentCourse_Final_Assignment_Template/tree/main
|
bconsolvo
| 5 |
2025-07-09T14:19:17.055785+00:00
|
https://huggingface.co/spaces/bconsolvo/hf_agents_final_assignment_bconsolvo/tree/main
|
aniketqxp
| 100 |
2025-07-09T14:44:39.307443+00:00
|
https://huggingface.co/spaces/aniketqxp/Final_Assignment_Template/tree/main
|
Ishikawa7
| 0 |
2025-07-09T14:56:06.993789+00:00
|
https://github.com/ssgrummons/huggingface_final_assignment
|
ddavydov
| 35 |
2025-07-09T17:35:48.064098+00:00
|
https://huggingface.co/spaces/ddavydov/Final_Assignment_Template/tree/main
|
thatweirddude
| 100 |
2025-07-09T18:54:31.590318+00:00
|
https://huggingface.co/spaces/thatweirddude/Final_Assignment_Template/tree/main
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.