Vlad Iliescu commited on
Commit
11dcea3
·
1 Parent(s): 81917a3

refactor: light personalization, pin versions, make dependencies explicit

Browse files
Files changed (3) hide show
  1. README.md +2 -2
  2. app.py +4 -5
  3. requirements.txt +3 -2
README.md CHANGED
@@ -1,6 +1,6 @@
1
  ---
2
- title: Template Final Assignment
3
- emoji: 🕵🏻‍♂️
4
  colorFrom: indigo
5
  colorTo: indigo
6
  sdk: gradio
 
1
  ---
2
+ title: HF Agents Final Assignment (GAIA)
3
+ emoji: 🤷🏻‍♂️
4
  colorFrom: indigo
5
  colorTo: indigo
6
  sdk: gradio
app.py CHANGED
@@ -3,13 +3,12 @@ import gradio as gr
3
  import requests
4
  import inspect
5
  import pandas as pd
 
 
 
6
 
7
- # (Keep Constants as is)
8
- # --- Constants ---
9
  DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
10
 
11
- # --- Basic Agent Definition ---
12
- # ----- THIS IS WERE YOU CAN BUILD WHAT YOU WANT ------
13
  class BasicAgent:
14
  def __init__(self):
15
  print("BasicAgent initialized.")
@@ -91,7 +90,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
91
  print("Agent did not produce any answers to submit.")
92
  return "Agent did not produce any answers to submit.", pd.DataFrame(results_log)
93
 
94
- # 4. Prepare Submission
95
  submission_data = {"username": username.strip(), "agent_code": agent_code, "answers": answers_payload}
96
  status_update = f"Agent finished. Submitting {len(answers_payload)} answers for user '{username}'..."
97
  print(status_update)
 
3
  import requests
4
  import inspect
5
  import pandas as pd
6
+ from dotenv import load_dotenv
7
+
8
+ load_dotenv()
9
 
 
 
10
  DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
11
 
 
 
12
  class BasicAgent:
13
  def __init__(self):
14
  print("BasicAgent initialized.")
 
90
  print("Agent did not produce any answers to submit.")
91
  return "Agent did not produce any answers to submit.", pd.DataFrame(results_log)
92
 
93
+ # 4. Prepare Submission
94
  submission_data = {"username": username.strip(), "agent_code": agent_code, "answers": answers_payload}
95
  status_update = f"Agent finished. Submitting {len(answers_payload)} answers for user '{username}'..."
96
  print(status_update)
requirements.txt CHANGED
@@ -1,2 +1,3 @@
1
- gradio
2
- requests
 
 
1
+ gradio[oauth]==5.27.0
2
+ requests==2.32.3
3
+ smolagents[openai]==1.14.0