YI Zhongyue commited on
Commit ·
682a11a
1
Parent(s): e5bfc40
update agent
Browse files
README.md
CHANGED
|
@@ -17,6 +17,8 @@ hf_oauth_expiration_minutes: 480
|
|
| 17 |
|
| 18 |
This is a multi-agent system developed for the [Hugging Face Agents Course](https://huggingface.co/learn/agents-course/en/unit4/introduction) Unit 4 final project. The system is designed to evaluate AI agent performance through the [GAIA benchmark](https://huggingface.co/spaces/gaia-benchmark/leaderboard).
|
| 19 |
|
|
|
|
|
|
|
| 20 |
Due to the fact that this agent system does not provide file processing capabilities, multimodal reasoning, and other advanced features, some questions like the following cannot be answered by this agent system:
|
| 21 |
|
| 22 |
> The attached Excel file contains the sales of menu items for a local fast-food chain. What were the total sales that the chain made from food (not including drinks)? Express your answer in USD with two decimal places.
|
|
|
|
| 17 |
|
| 18 |
This is a multi-agent system developed for the [Hugging Face Agents Course](https://huggingface.co/learn/agents-course/en/unit4/introduction) Unit 4 final project. The system is designed to evaluate AI agent performance through the [GAIA benchmark](https://huggingface.co/spaces/gaia-benchmark/leaderboard).
|
| 19 |
|
| 20 |
+
|
| 21 |
+
|
| 22 |
Due to the fact that this agent system does not provide file processing capabilities, multimodal reasoning, and other advanced features, some questions like the following cannot be answered by this agent system:
|
| 23 |
|
| 24 |
> The attached Excel file contains the sales of menu items for a local fast-food chain. What were the total sales that the chain made from food (not including drinks)? Express your answer in USD with two decimal places.
|
agent.py
CHANGED
|
@@ -20,11 +20,10 @@ if pathlib.Path(".env").exists():
|
|
| 20 |
dotenv.load_dotenv(".env")
|
| 21 |
|
| 22 |
OPENAI_API_KEY = os.getenv("OPENAI_API_KEY", None)
|
| 23 |
-
ANTHROPIC_API_KEY = os.getenv("ANTHROPIC_API_KEY", None)
|
| 24 |
|
| 25 |
-
if not OPENAI_API_KEY
|
| 26 |
raise ValueError(
|
| 27 |
-
"Please set either OPENAI_API_KEY
|
| 28 |
)
|
| 29 |
|
| 30 |
model = OpenAIServerModel(
|
|
|
|
| 20 |
dotenv.load_dotenv(".env")
|
| 21 |
|
| 22 |
OPENAI_API_KEY = os.getenv("OPENAI_API_KEY", None)
|
|
|
|
| 23 |
|
| 24 |
+
if not OPENAI_API_KEY:
|
| 25 |
raise ValueError(
|
| 26 |
+
"Please set either OPENAI_API_KEY in your .env file or Huggingface Space settings."
|
| 27 |
)
|
| 28 |
|
| 29 |
model = OpenAIServerModel(
|