Skip to content

Commit 313f671

Browse files
ZePan110edlee123
authored andcommitted
update secrets token name for AvatarChatbot and DBQnA. (opea-project#2030)
Signed-off-by: ZePan110 <ze.pan@intel.com> Signed-off-by: Ed Lee <16417837+edlee123@users.noreply.github.com>
1 parent 9b089dd commit 313f671

16 files changed

Lines changed: 25 additions & 25 deletions

File tree

AvatarChatbot/docker_compose/amd/gpu/rocm/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Then run the command `docker images`, you will have following images ready:
6868
Before starting the services with `docker compose`, you have to recheck the following environment variables.
6969

7070
```bash
71-
export HUGGINGFACEHUB_API_TOKEN=${HUGGINGFACEHUB_API_TOKEN}
71+
export HF_TOKEN=${HF_TOKEN}
7272
export host_ip=$(hostname -I | awk '{print $1}')
7373

7474
export TGI_SERVICE_PORT=3006
@@ -203,7 +203,7 @@ In the current version v1.3, you need to set the avatar figure image/video and t
203203
cd GenAIExamples/AvatarChatbot/tests
204204
export IMAGE_REPO="opea"
205205
export IMAGE_TAG="latest"
206-
export HUGGINGFACEHUB_API_TOKEN=<your_hf_token>
206+
export HF_TOKEN=<your_hf_token>
207207

208208
test_avatarchatbot_on_xeon.sh
209209
```

AvatarChatbot/docker_compose/amd/gpu/rocm/compose.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ services:
5252
no_proxy: ${no_proxy}
5353
http_proxy: ${http_proxy}
5454
https_proxy: ${https_proxy}
55-
HUGGING_FACE_HUB_TOKEN: ${HUGGINGFACEHUB_API_TOKEN}
56-
HUGGINGFACEHUB_API_TOKEN: ${HUGGINGFACEHUB_API_TOKEN}
55+
HUGGING_FACE_HUB_TOKEN: ${HF_TOKEN}
56+
HF_TOKEN: ${HF_TOKEN}
5757
shm_size: 1g
5858
devices:
5959
- /dev/kfd:/dev/kfd

AvatarChatbot/docker_compose/amd/gpu/rocm/set_env.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Copyright (C) 2024 Intel Corporation
44
# SPDX-License-Identifier: Apache-2.0
55

6-
export HUGGINGFACEHUB_API_TOKEN=${HUGGINGFACEHUB_API_TOKEN}
6+
export HF_TOKEN=${HF_TOKEN}
77
export OPENAI_API_KEY=${OPENAI_API_KEY}
88
export host_ip=$(hostname -I | awk '{print $1}')
99

AvatarChatbot/docker_compose/intel/cpu/xeon/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Then run the command `docker images`, you will have following images ready:
5858
Before starting the services with `docker compose`, you have to recheck the following environment variables.
5959

6060
```bash
61-
export HUGGINGFACEHUB_API_TOKEN=<your_hf_token>
61+
export HF_TOKEN=<your_hf_token>
6262
export host_ip=$(hostname -I | awk '{print $1}')
6363

6464
export LLM_MODEL_ID=Intel/neural-chat-7b-v3-3
@@ -173,7 +173,7 @@ In the current version v1.3, you need to set the avatar figure image/video and t
173173
cd GenAIExamples/AvatarChatbot/tests
174174
export IMAGE_REPO="opea"
175175
export IMAGE_TAG="latest"
176-
export HUGGINGFACEHUB_API_TOKEN=<your_hf_token>
176+
export HF_TOKEN=<your_hf_token>
177177

178178
test_avatarchatbot_on_xeon.sh
179179
```

AvatarChatbot/docker_compose/intel/cpu/xeon/compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ services:
3737
no_proxy: ${no_proxy}
3838
http_proxy: ${http_proxy}
3939
https_proxy: ${https_proxy}
40-
HF_TOKEN: ${HUGGINGFACEHUB_API_TOKEN}
40+
HF_TOKEN: ${HF_TOKEN}
4141
healthcheck:
4242
test: ["CMD-SHELL", "curl -f http://${host_ip}:3006/health || exit 1"]
4343
interval: 10s

AvatarChatbot/docker_compose/intel/cpu/xeon/set_env.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pushd "../../../../../" > /dev/null
66
source .set_env.sh
77
popd > /dev/null
88

9-
export HUGGINGFACEHUB_API_TOKEN=${HUGGINGFACEHUB_API_TOKEN}
9+
export HF_TOKEN=${HF_TOKEN}
1010
export host_ip=$(hostname -I | awk '{print $1}')
1111
export LLM_MODEL_ID=Intel/neural-chat-7b-v3-3
1212
export WAV2LIP_ENDPOINT=http://$host_ip:7860

AvatarChatbot/docker_compose/intel/hpu/gaudi/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Then run the command `docker images`, you will have following images ready:
5858
Before starting the services with `docker compose`, you have to recheck the following environment variables.
5959

6060
```bash
61-
export HUGGINGFACEHUB_API_TOKEN=<your_hf_token>
61+
export HF_TOKEN=<your_hf_token>
6262
export host_ip=$(hostname -I | awk '{print $1}')
6363

6464
export LLM_MODEL_ID=Intel/neural-chat-7b-v3-3
@@ -183,7 +183,7 @@ In the current version v1.3, you need to set the avatar figure image/video and t
183183
cd GenAIExamples/AvatarChatbot/tests
184184
export IMAGE_REPO="opea"
185185
export IMAGE_TAG="latest"
186-
export HUGGINGFACEHUB_API_TOKEN=<your_hf_token>
186+
export HF_TOKEN=<your_hf_token>
187187

188188
test_avatarchatbot_on_gaudi.sh
189189
```

AvatarChatbot/docker_compose/intel/hpu/gaudi/compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ services:
4848
no_proxy: ${no_proxy}
4949
http_proxy: ${http_proxy}
5050
https_proxy: ${https_proxy}
51-
HUGGING_FACE_HUB_TOKEN: ${HUGGINGFACEHUB_API_TOKEN}
51+
HUGGING_FACE_HUB_TOKEN: ${HF_TOKEN}
5252
HF_HUB_DISABLE_PROGRESS_BARS: 1
5353
HF_HUB_ENABLE_HF_TRANSFER: 0
5454
HABANA_VISIBLE_DEVICES: all

AvatarChatbot/docker_compose/intel/hpu/gaudi/set_env.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pushd "../../../../../" > /dev/null
66
source .set_env.sh
77
popd > /dev/null
88

9-
export HUGGINGFACEHUB_API_TOKEN=$HUGGINGFACEHUB_API_TOKEN
9+
export HF_TOKEN=$HF_TOKEN
1010
export host_ip=$(hostname -I | awk '{print $1}')
1111

1212
export LLM_MODEL_ID=Intel/neural-chat-7b-v3-3

AvatarChatbot/tests/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Set the required environment variable
44

55
```bash
6-
export HUGGINGFACEHUB_API_TOKEN="Your_Huggingface_API_Token"
6+
export HF_TOKEN="Your_Huggingface_API_Token"
77
```
88

99
## Run test

0 commit comments

Comments
 (0)