diff --git a/MultimodalQnA/multimodalqna.py b/MultimodalQnA/multimodalqna.py index 8fdf30f93..fe6a9f6c8 100644 --- a/MultimodalQnA/multimodalqna.py +++ b/MultimodalQnA/multimodalqna.py @@ -1,8 +1,11 @@ # Copyright (C) 2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -import os import base64 +import os +from io import BytesIO + +import requests from comps import Gateway, MegaServiceEndpoint, MicroService, ServiceOrchestrator, ServiceType from comps.cores.proto.api_protocol import ( ChatCompletionRequest, @@ -12,12 +15,9 @@ UsageInfo, ) from comps.cores.proto.docarray import LLMParams -import requests from fastapi import Request from fastapi.responses import StreamingResponse from PIL import Image -from io import BytesIO - MEGA_SERVICE_HOST_IP = os.getenv("MEGA_SERVICE_HOST_IP", "0.0.0.0") MEGA_SERVICE_PORT = int(os.getenv("MEGA_SERVICE_PORT", 8888))