AkshayKK commited on
Commit
c947bee
·
1 Parent(s): 82c3b0c

Document HuggingFace deployment steps

Browse files
Files changed (1) hide show
  1. README.md +17 -0
README.md CHANGED
@@ -42,3 +42,20 @@ docker run -p 7860:7860 --env-file multi_tool_agent/.env travel-agent-space
42
  ```
43
 
44
  Open `http://localhost:7860/dev-ui/` to verify the UI.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
  ```
43
 
44
  Open `http://localhost:7860/dev-ui/` to verify the UI.
45
+
46
+ ## Deploying to HuggingFace Spaces (Beginner Guide)
47
+
48
+ 1. **Create the Space**
49
+ - Sign in at [huggingface.co](https://huggingface.co), go to *Spaces → New Space*, pick a name, leave hardware on CPU, and choose **Docker** as the runtime.
50
+ 2. **Generate a token**
51
+ - In *Settings → Access Tokens* create a write-enabled token; copy it for later (you’ll use it as the Git password).
52
+ 3. **Connect your repo**
53
+ - From this project folder run `git remote add hf https://huggingface.co/spaces/<username>/<space-name>` (replace with your Space info).
54
+ 4. **Push the code**
55
+ - Run `git push hf dev:main --force-with-lease` and enter your HF username + token when prompted. This triggers the Space build using the included `Dockerfile`.
56
+ 5. **Set secrets**
57
+ - In the Space page open *Settings → Secrets* and add keys like `GOOGLE_API_KEY`, `SERP_API_KEY`, and `FIRECRAWL_API_KEY`. They become environment variables inside the container.
58
+ 6. **Verify the build**
59
+ - Watch the *Build & Logs* tab until it shows “Running,” then visit `https://huggingface.co/spaces/<username>/<space-name>` (the app serves the ADK UI at `/dev-ui/`).
60
+
61
+ If you change the app later, repeat steps 4–6 to redeploy.