--- title: First Agent Template emoji: ⚡ colorFrom: pink colorTo: yellow sdk: gradio sdk_version: 5.23.1 app_file: app.py pinned: false tags: - smolagents - agent - smolagent - tool - agent-course --- Check out the configuration reference at ## Clone repository ```shell git clone https://huggingface.co/spaces/2stacks/First_agent_template cd First_agent_template ``` ## Create and activate Python environment ```shell python -m venv env source env/bin/activate ``` ## Install dependencies and run ```shell pip install -r requirements.txt python app.py ``` ## Run with Docker ```shell docker run -it -p 7860:7860 \ --platform=linux/amd64 \ --environment HF_TOKEN="YOUR_VALUE_HERE" \ registry.hf.space/2stacks-first-agent-template:latest python app.py ```