Spaces:
Sleeping
Sleeping
A newer version of the Gradio SDK is available:
5.41.1
Running AWorld Agent
Prerequisites
Conda Environment
- Ensure Conda is installed and configured on your machine
- Create a Conda environment:
conda create -n aworld python=3.11 conda activate aworld
Clone Repository
- Clone the repository and switch to the main branch:
git clone https://github.com/inclusionAI/AWorld cd AWorld
- Clone the repository and switch to the main branch:
Dataset Preparation
- Download the GAIA dataset from Hugging Face
- Place it in the correct directory:
git clone git@hf.co:datasets/gaia-benchmark/GAIA examples/gaia/GAIA
- ⚠️ Note: You need to configure Hugging Face SSH Keys to access the GAIA repository
API Configuration
- Set up your environment variables:
cp .env.template .env
- Edit the
.env
file and replace all{YOUR_CONFIG}
placeholders with your actual values
- Set up your environment variables:
Running the Agent
Start the Web Server
- Build and run the AWorld Agent:
sh run-server.sh
- Wait for the installation to complete
- Build and run the AWorld Agent:
Access the Interface
- Open your browser and navigate to http://127.0.0.1:8000
Troubleshooting
- For dataset access problems, verify that your Hugging Face SSH keys are correctly configured
- Set up a pip mirror if necessary
Develop Your Own Agent
- Copy
examples/web/agent_deploy/weather_agent
toexamples/web/agent_deploy/{YOUR_AGENT_NAME}
- Write your code in
examples/web/agent_deploy/{YOUR_AGENT_NAME}/agent.py
- Configure the MCP Server in
examples/web/agent_deploy/{YOUR_AGENT_NAME}/mcp.json