diff --git a/comps/dataprep/multimedia2text/video2audio/video2audio.py b/comps/dataprep/multimedia2text/video2audio/video2audio.py index 0f454f1c37..57cc173360 100644 --- a/comps/dataprep/multimedia2text/video2audio/video2audio.py +++ b/comps/dataprep/multimedia2text/video2audio/video2audio.py @@ -6,7 +6,7 @@ import uuid from os import path, remove -from moviepy.editor import VideoFileClip +from moviepy import VideoFileClip # Get the root folder of the current script root_folder = path.dirname(path.abspath(__file__)) diff --git a/comps/dataprep/multimodal/redis/langchain/multimodal_utils.py b/comps/dataprep/multimodal/redis/langchain/multimodal_utils.py index 6c89a23fd7..6c863ef713 100644 --- a/comps/dataprep/multimodal/redis/langchain/multimodal_utils.py +++ b/comps/dataprep/multimodal/redis/langchain/multimodal_utils.py @@ -12,7 +12,7 @@ import requests import webvtt import whisper -from moviepy.editor import VideoFileClip +from moviepy import VideoFileClip def create_upload_folder(upload_path): diff --git a/tests/dataprep/test_dataprep_multimedia.sh b/tests/dataprep/test_dataprep_multimedia.sh index 30592c86a0..c151f6b06f 100644 --- a/tests/dataprep/test_dataprep_multimedia.sh +++ b/tests/dataprep/test_dataprep_multimedia.sh @@ -74,7 +74,7 @@ function start_services() { fi - docker run -d -p 9099:9099 --name="test-comps-mm-a2t-service" --ipc=host -e http_proxy=$http_proxy -e https_proxy=$https_proxy -e A2T_ENDPOINT=http://$host_ip:7066 opea/a2t:comps + docker run -d -p 9199:9099 --name="test-comps-mm-a2t-service" --ipc=host -e http_proxy=$http_proxy -e https_proxy=$https_proxy -e A2T_ENDPOINT=http://$host_ip:7066 opea/a2t:comps if [ $? -ne 0 ]; then echo "opea/a2t service fail to start" exit 1 @@ -183,7 +183,7 @@ function validate_microservices() { # Audio2Text service validate_services \ - "${host_ip}:9099/v1/audio/transcriptions" \ + "${host_ip}:9199/v1/audio/transcriptions" \ '"query":"well"' \ "a2t" \ "a2t-service" \ @@ -192,7 +192,7 @@ function validate_microservices() { # Video2Audio service validate_services \ "${host_ip}:7078/v1/video2audio" \ - "SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjI5LjEwMAAAAAAAAAAAAAAA//tQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAASW5mbwAAAA8AAAAIAAAN3wAtLS0tLS0tLS0tLS1LS0tLS0tLS0tLS0tpaWlpaWlpaWlpaWlph4eHh4eHh4eHh4eHpaWlpaWlpaWlpaWlpcPDw8PDw8PDw8PDw+Hh4eHh4eHh4eHh4eH///////////////8AAAAATGF2YzU4LjU0AAAAAAAAAAAAAAAAJAYwAAAAAAAADd9L18KaAAAAAAAAAAAAAAAAAAAAAP/7kGQAAAMhClSVMEACMOAabaCMAREA" \ + "SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjI5LjEwMAAAAAAAAAAAAAAA//tQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAASW5mbwAAAA8AAAAIAAAN3wAtLS0tLS0tLS0tLS1LS0tLS0tLS0tLS0tpaWlpaWlpaWlpaWlph4eHh4eHh4eHh4eHpaWlpaWlpaWlpaWlpcPDw8PDw8PDw8PDw+Hh4eHh4eHh4eHh4eH///////////////8AAAAATGF2YzU4LjU0AAAAAAAAAAAAAAA" \ "v2a" \ "v2a-service" \ "{\"byte_str\": \"$(input_data_for_test "video")\"}" @@ -200,7 +200,7 @@ function validate_microservices() { # Docsum Data service - video validate_services \ "${host_ip}:7079/v1/multimedia2text" \ - '"query":"well"' \ + '"query":"well' \ "multimedia2text-service" \ "multimedia2text" \ "{\"video\": \"$(input_data_for_test "video")\"}" @@ -208,7 +208,7 @@ function validate_microservices() { # Docsum Data service - audio validate_services \ "${host_ip}:7079/v1/multimedia2text" \ - '"query":"well"' \ + '"query":"well' \ "multimedia2text-service" \ "multimedia2text" \ "{\"audio\": \"$(input_data_for_test "audio")\"}"