Skip to content

Commit 16bab02

Browse files
Instruction for HF deployment (camel-ai#358)
1 parent 149ab94 commit 16bab02

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

apps/agents/README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,15 @@
33
Run the app:
44
```
55
python agents.py --api-key=YOUR-OPENAI-API-KEY
6-
```
6+
```
7+
8+
# Deploy the app to Huggingface
9+
10+
This app in Camel repo does not get deployed to Huggingface automatically. The process of deployment is manual at the moment.
11+
1. Make changes in Camel (this) repo, and thoroughly debug them on a dev machine.
12+
2. Tag the commit that you want to deploy with tag hf_spaces_{X+1} where X must be looked up in [HF repo sync script](https://huggingface.co/spaces/camel-ai/camel-agents/blob/main/sync.sh). Do not forget to `git push --tags`.
13+
3. Clone [HF repo](https://huggingface.co/spaces/camel-ai/camel-agents/) locally.
14+
4. Update the tag.
15+
5. Synchronize the changes by running [HF repo sync script](https://huggingface.co/spaces/camel-ai/camel-agents/blob/main/sync.sh)
16+
6. Commit and push to HF.
17+
7. HF will deploy the app automatically. Make sure that the app is built well on HF and is up and running.

0 commit comments

Comments
 (0)