Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and chensuyue committed Oct 9, 2024
1 parent a0f57e1 commit 6ee272b
Show file tree
Hide file tree
Showing 3 changed files with 165 additions and 119 deletions.
19 changes: 16 additions & 3 deletions AvatarChatbot/avatarchatbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def check_env_vars(env_var_list):
for var in env_var_list:
if not os.getenv(var):
print(f"Error: The environment variable '{var}' is not set.")
sys.exit(1) # Exit the program with a non-zero status code
sys.exit(1) # Exit the program with a non-zero status code
print("All environment variables are set.")


Expand Down Expand Up @@ -74,7 +74,20 @@ def add_remote_service(self):


if __name__ == "__main__":
check_env_vars([MEGA_SERVICE_HOST_IP, MEGA_SERVICE_PORT, ASR_SERVICE_HOST_IP, ASR_SERVICE_PORT, LLM_SERVICE_HOST_IP, LLM_SERVICE_PORT, TTS_SERVICE_HOST_IP, TTS_SERVICE_PORT, ANIMATION_SERVICE_HOST_IP, ANIMATION_SERVICE_PORT])

check_env_vars(
[
MEGA_SERVICE_HOST_IP,
MEGA_SERVICE_PORT,
ASR_SERVICE_HOST_IP,
ASR_SERVICE_PORT,
LLM_SERVICE_HOST_IP,
LLM_SERVICE_PORT,
TTS_SERVICE_HOST_IP,
TTS_SERVICE_PORT,
ANIMATION_SERVICE_HOST_IP,
ANIMATION_SERVICE_PORT,
]
)

avatarchatbot = AvatarChatbotService(host=MEGA_SERVICE_HOST_IP, port=MEGA_SERVICE_PORT)
avatarchatbot.add_remote_service()
6 changes: 3 additions & 3 deletions AvatarChatbot/docker_compose/intel/hpu/gaudi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ flowchart LR
classDef invisible fill:transparent,stroke:transparent;
style AvatarChatbot-Megaservice stroke:#000000
%% Subgraphs %%
%% Subgraphs %%
subgraph AvatarChatbot-Megaservice["AvatarChatbot Megaservice"]
direction LR
ASR([ASR<br>3001]):::blue
Expand All @@ -43,15 +43,15 @@ flowchart LR
invis2[ ]:::invisible
GW([AvatarChatbot GateWay<br>]):::orange
end
subgraph
subgraph
direction LR
X([OPEA Microservice]):::blue
Y{{Open Source Service}}:::thistle
Z([OPEA Gateway]):::orange
Z1([UI]):::orchid
end
%% Services %%
%% Services %%
WHISPER{{Whisper service<br>7066}}:::thistle
TGI{{LLM service<br>3006}}:::thistle
T5{{Speecht5 service<br>7055}}:::thistle
Expand Down
Loading

0 comments on commit 6ee272b

Please sign in to comment.