LamiaYT commited on
Commit
d5a26c7
·
1 Parent(s): a09dd9e
Files changed (2) hide show
  1. requirements.txt +2 -1
  2. utils/gaia_api.py +3 -4
requirements.txt CHANGED
@@ -3,7 +3,8 @@ llama-index-llms-huggingface==0.2.0
3
  transformers==4.38.2
4
  torch==2.1.2
5
  gradio==3.41.0
6
- requests==2.31.0
 
7
  accelerate==0.23.0
8
  sentence-transformers==2.2.2
9
  python-dotenv==1.0.0
 
3
  transformers==4.38.2
4
  torch==2.1.2
5
  gradio==3.41.0
6
+ requests==2.32.2
7
+ huggingface-hub==0.23.2
8
  accelerate==0.23.0
9
  sentence-transformers==2.2.2
10
  python-dotenv==1.0.0
utils/gaia_api.py CHANGED
@@ -1,4 +1,3 @@
1
- #BASE_URL = "https://https://agents-course-unit4-scoring.hf.space/docs" # Actual GAIA API URL
2
  # utils/gaia_api.py
3
  import requests
4
  from typing import List, Dict, Optional
@@ -7,8 +6,8 @@ import json
7
  class GaiaAPI:
8
  """Client for interacting with GAIA Benchmark API"""
9
 
10
- # You need to replace this with the actual API endpoint from the course
11
- BASE_URL = "https://agents-course-unit4-scoring.hf.space" # Replace with actual endpoint
12
 
13
  @classmethod
14
  def get_questions(cls) -> List[Dict]:
@@ -82,4 +81,4 @@ class GaiaAPI:
82
  "level": 1,
83
  "final_answer": "JavaScript, Python, PHP"
84
  }
85
- ]
 
 
1
  # utils/gaia_api.py
2
  import requests
3
  from typing import List, Dict, Optional
 
6
  class GaiaAPI:
7
  """Client for interacting with GAIA Benchmark API"""
8
 
9
+ # Fixed API endpoint
10
+ BASE_URL = "https://agents-course-unit4-scoring.hf.space"
11
 
12
  @classmethod
13
  def get_questions(cls) -> List[Dict]:
 
81
  "level": 1,
82
  "final_answer": "JavaScript, Python, PHP"
83
  }
84
+ ]