From 15bdd5643aceb408b486bb0050b5fd679ac6820d Mon Sep 17 00:00:00 2001 From: Huiyan2021 Date: Tue, 25 Jun 2024 22:56:27 -0700 Subject: [PATCH 1/2] Fix #261 issue --- AudioQnA/docker/audioqna.py | 8 ++++---- ChatQnA/docker/chatqna.py | 10 +++++----- CodeGen/docker/codegen.py | 4 ++-- .../langchain/docker/codetrans-app/server.py | 2 +- CodeTrans/docker/code_translation.py | 4 ++-- DocSum/docker/docsum.py | 4 ++-- SearchQnA/docker/searchqna.py | 10 +++++----- .../langchain/docker/translation-app/server.py | 2 +- Translation/docker/translation.py | 4 ++-- 9 files changed, 24 insertions(+), 24 deletions(-) diff --git a/AudioQnA/docker/audioqna.py b/AudioQnA/docker/audioqna.py index fd1e08a32..798762084 100644 --- a/AudioQnA/docker/audioqna.py +++ b/AudioQnA/docker/audioqna.py @@ -7,13 +7,13 @@ from comps import AudioQnAGateway, MicroService, ServiceOrchestrator, ServiceType MEGA_SERVICE_HOST_IP = os.getenv("MEGA_SERVICE_HOST_IP", "0.0.0.0") -MEGA_SERVICE_PORT = os.getenv("MEGA_SERVICE_PORT", 8888) +MEGA_SERVICE_PORT = int(os.getenv("MEGA_SERVICE_PORT", 8888)) ASR_SERVICE_HOST_IP = os.getenv("ASR_SERVICE_HOST_IP", "0.0.0.0") -ASR_SERVICE_PORT = os.getenv("ASR_SERVICE_PORT", 9099) +ASR_SERVICE_PORT = int(os.getenv("ASR_SERVICE_PORT", 9099)) LLM_SERVICE_HOST_IP = os.getenv("LLM_SERVICE_HOST_IP", "0.0.0.0") -LLM_SERVICE_PORT = os.getenv("LLM_SERVICE_PORT", 9000) +LLM_SERVICE_PORT = int(os.getenv("LLM_SERVICE_PORT", 9000)) TTS_SERVICE_HOST_IP = os.getenv("TTS_SERVICE_HOST_IP", "0.0.0.0") -TTS_SERVICE_PORT = os.getenv("TTS_SERVICE_PORT", 9088) +TTS_SERVICE_PORT = int(os.getenv("TTS_SERVICE_PORT", 9088)) class AudioQnAService: diff --git a/ChatQnA/docker/chatqna.py b/ChatQnA/docker/chatqna.py index 90e2a80da..ad6851c71 100644 --- a/ChatQnA/docker/chatqna.py +++ b/ChatQnA/docker/chatqna.py @@ -7,15 +7,15 @@ from comps import ChatQnAGateway, MicroService, ServiceOrchestrator, ServiceType MEGA_SERVICE_HOST_IP = os.getenv("MEGA_SERVICE_HOST_IP", "0.0.0.0") -MEGA_SERVICE_PORT = os.getenv("MEGA_SERVICE_PORT", 8888) +MEGA_SERVICE_PORT = int(os.getenv("MEGA_SERVICE_PORT", 8888)) EMBEDDING_SERVICE_HOST_IP = os.getenv("EMBEDDING_SERVICE_HOST_IP", "0.0.0.0") -EMBEDDING_SERVICE_PORT = os.getenv("EMBEDDING_SERVICE_PORT", 6000) +EMBEDDING_SERVICE_PORT = int(os.getenv("EMBEDDING_SERVICE_PORT", 6000)) RETRIEVER_SERVICE_HOST_IP = os.getenv("RETRIEVER_SERVICE_HOST_IP", "0.0.0.0") -RETRIEVER_SERVICE_PORT = os.getenv("RETRIEVER_SERVICE_PORT", 7000) +RETRIEVER_SERVICE_PORT = int(os.getenv("RETRIEVER_SERVICE_PORT", 7000)) RERANK_SERVICE_HOST_IP = os.getenv("RERANK_SERVICE_HOST_IP", "0.0.0.0") -RERANK_SERVICE_PORT = os.getenv("RERANK_SERVICE_PORT", 8000) +RERANK_SERVICE_PORT = int(os.getenv("RERANK_SERVICE_PORT", 8000)) LLM_SERVICE_HOST_IP = os.getenv("LLM_SERVICE_HOST_IP", "0.0.0.0") -LLM_SERVICE_PORT = os.getenv("LLM_SERVICE_PORT", 9000) +LLM_SERVICE_PORT = int(os.getenv("LLM_SERVICE_PORT", 9000)) class ChatQnAService: diff --git a/CodeGen/docker/codegen.py b/CodeGen/docker/codegen.py index 5c4b9012d..ac04cc787 100644 --- a/CodeGen/docker/codegen.py +++ b/CodeGen/docker/codegen.py @@ -7,9 +7,9 @@ from comps import CodeGenGateway, MicroService, ServiceOrchestrator, ServiceType MEGA_SERVICE_HOST_IP = os.getenv("MEGA_SERVICE_HOST_IP", "0.0.0.0") -MEGA_SERVICE_PORT = os.getenv("MEGA_SERVICE_PORT", 7778) +MEGA_SERVICE_PORT = int(os.getenv("MEGA_SERVICE_PORT", 7778)) LLM_SERVICE_HOST_IP = os.getenv("LLM_SERVICE_HOST_IP", "0.0.0.0") -LLM_SERVICE_PORT = os.getenv("LLM_SERVICE_PORT", 9000) +LLM_SERVICE_PORT = int(os.getenv("LLM_SERVICE_PORT", 9000)) class CodeGenService: diff --git a/CodeTrans/deprecated/langchain/docker/codetrans-app/server.py b/CodeTrans/deprecated/langchain/docker/codetrans-app/server.py index 25055e9b8..6908a16c0 100644 --- a/CodeTrans/deprecated/langchain/docker/codetrans-app/server.py +++ b/CodeTrans/deprecated/langchain/docker/codetrans-app/server.py @@ -24,7 +24,7 @@ ) TGI_ENDPOINT = os.getenv("TGI_ENDPOINT", "http://localhost:8080") -SERVICE_PORT = os.getenv("SERVER_PORT", 8000) +SERVICE_PORT = int(os.getenv("SERVER_PORT", 8000)) class CodeTranslationAPIRouter(APIRouter): diff --git a/CodeTrans/docker/code_translation.py b/CodeTrans/docker/code_translation.py index 43c113b5c..195748511 100644 --- a/CodeTrans/docker/code_translation.py +++ b/CodeTrans/docker/code_translation.py @@ -7,9 +7,9 @@ from comps import CodeTransGateway, MicroService, ServiceOrchestrator MEGA_SERVICE_HOST_IP = os.getenv("MEGA_SERVICE_HOST_IP", "0.0.0.0") -MEGA_SERVICE_PORT = os.getenv("MEGA_SERVICE_PORT", 7777) +MEGA_SERVICE_PORT = int(os.getenv("MEGA_SERVICE_PORT", 7777)) LLM_SERVICE_HOST_IP = os.getenv("LLM_SERVICE_HOST_IP", "0.0.0.0") -LLM_SERVICE_PORT = os.getenv("LLM_SERVICE_PORT", 9000) +LLM_SERVICE_PORT = int(os.getenv("LLM_SERVICE_PORT", 9000)) class CodeTransService: diff --git a/DocSum/docker/docsum.py b/DocSum/docker/docsum.py index 8050059e7..fe6d3229c 100644 --- a/DocSum/docker/docsum.py +++ b/DocSum/docker/docsum.py @@ -7,9 +7,9 @@ from comps import DocSumGateway, MicroService, ServiceOrchestrator, ServiceType MEGA_SERVICE_HOST_IP = os.getenv("MEGA_SERVICE_HOST_IP", "0.0.0.0") -MEGA_SERVICE_PORT = os.getenv("MEGA_SERVICE_PORT", 8888) +MEGA_SERVICE_PORT = int(os.getenv("MEGA_SERVICE_PORT", 8888)) LLM_SERVICE_HOST_IP = os.getenv("LLM_SERVICE_HOST_IP", "0.0.0.0") -LLM_SERVICE_PORT = os.getenv("LLM_SERVICE_PORT", 9000) +LLM_SERVICE_PORT = int(os.getenv("LLM_SERVICE_PORT", 9000)) class DocSumService: diff --git a/SearchQnA/docker/searchqna.py b/SearchQnA/docker/searchqna.py index df26f7564..fa620d42a 100644 --- a/SearchQnA/docker/searchqna.py +++ b/SearchQnA/docker/searchqna.py @@ -6,15 +6,15 @@ from comps import MicroService, SearchQnAGateway, ServiceOrchestrator, ServiceType MEGA_SERVICE_HOST_IP = os.getenv("MEGA_SERVICE_HOST_IP", "0.0.0.0") -MEGA_SERVICE_PORT = os.getenv("MEGA_SERVICE_PORT", 8888) +MEGA_SERVICE_PORT = int(os.getenv("MEGA_SERVICE_PORT", 8888)) EMBEDDING_SERVICE_HOST_IP = os.getenv("EMBEDDING_SERVICE_HOST_IP", "0.0.0.0") -EMBEDDING_SERVICE_PORT = os.getenv("EMBEDDING_SERVICE_PORT", 6000) +EMBEDDING_SERVICE_PORT = int(os.getenv("EMBEDDING_SERVICE_PORT", 6000)) WEB_RETRIEVER_SERVICE_HOST_IP = os.getenv("WEB_RETRIEVER_SERVICE_HOST_IP", "0.0.0.0") -WEB_RETRIEVER_SERVICE_PORT = os.getenv("WEB_RETRIEVER_SERVICE_PORT", 7000) +WEB_RETRIEVER_SERVICE_PORT = int(os.getenv("WEB_RETRIEVER_SERVICE_PORT", 7000)) RERANK_SERVICE_HOST_IP = os.getenv("RERANK_SERVICE_HOST_IP", "0.0.0.0") -RERANK_SERVICE_PORT = os.getenv("RERANK_SERVICE_PORT", 8000) +RERANK_SERVICE_PORT = int(os.getenv("RERANK_SERVICE_PORT", 8000)) LLM_SERVICE_HOST_IP = os.getenv("LLM_SERVICE_HOST_IP", "0.0.0.0") -LLM_SERVICE_PORT = os.getenv("LLM_SERVICE_PORT", 9000) +LLM_SERVICE_PORT = int(os.getenv("LLM_SERVICE_PORT", 9000)) class SearchQnAService: diff --git a/Translation/deprecated/langchain/docker/translation-app/server.py b/Translation/deprecated/langchain/docker/translation-app/server.py index 183825276..9ebab2572 100644 --- a/Translation/deprecated/langchain/docker/translation-app/server.py +++ b/Translation/deprecated/langchain/docker/translation-app/server.py @@ -24,7 +24,7 @@ ) TGI_ENDPOINT = os.getenv("TGI_ENDPOINT", "http://localhost:8080") -SERVICE_PORT = os.getenv("SERVER_PORT", 8000) +SERVICE_PORT = int(os.getenv("SERVER_PORT", 8000)) short_cut_mapping = { diff --git a/Translation/docker/translation.py b/Translation/docker/translation.py index 338661bfe..86093a166 100644 --- a/Translation/docker/translation.py +++ b/Translation/docker/translation.py @@ -18,9 +18,9 @@ from comps import MicroService, ServiceOrchestrator, ServiceType, TranslationGateway MEGA_SERVICE_HOST_IP = os.getenv("MEGA_SERVICE_HOST_IP", "0.0.0.0") -MEGA_SERVICE_PORT = os.getenv("MEGA_SERVICE_PORT", 8888) +MEGA_SERVICE_PORT = int(os.getenv("MEGA_SERVICE_PORT", 8888)) LLM_SERVICE_HOST_IP = os.getenv("LLM_SERVICE_HOST_IP", "0.0.0.0") -LLM_SERVICE_PORT = os.getenv("LLM_SERVICE_PORT", 9000) +LLM_SERVICE_PORT = int(os.getenv("LLM_SERVICE_PORT", 9000)) class TranslationService: From 98a187686f7cf09ae800d4a4d8c9ac36da182176 Mon Sep 17 00:00:00 2001 From: huiyan2021 Date: Fri, 26 Jul 2024 09:22:33 +0800 Subject: [PATCH 2/2] Update README.md Updated image url --- CodeGen/docker/ui/react/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CodeGen/docker/ui/react/README.md b/CodeGen/docker/ui/react/README.md index 5a9b07287..2a1ee7892 100644 --- a/CodeGen/docker/ui/react/README.md +++ b/CodeGen/docker/ui/react/README.md @@ -2,7 +2,7 @@ ### 📸 Project Screenshots -![project-screenshot](../../../assets/img/codegen_ui_react.png) +![project-screenshot](../../../assets/img/codegen_react.png)

🧐 Features