diff --git a/backend/python/transformers/run.sh b/backend/python/transformers/run.sh index 6a24de4c..e6a42b7e 100755 --- a/backend/python/transformers/run.sh +++ b/backend/python/transformers/run.sh @@ -11,4 +11,4 @@ source activate transformers # get the directory where the bash script is located DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" -python $DIR/transformers.py $@ +python $DIR/transformers_server.py $@ diff --git a/backend/python/transformers/test.sh b/backend/python/transformers/test.sh index a440f809..46e55f01 100644 --- a/backend/python/transformers/test.sh +++ b/backend/python/transformers/test.sh @@ -8,4 +8,4 @@ source activate transformers # get the directory where the bash script is located DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" -python -m unittest $DIR/test_transformers.py \ No newline at end of file +python -m unittest $DIR/test_transformers_server.py \ No newline at end of file diff --git a/backend/python/transformers/test_transformers.py b/backend/python/transformers/test_transformers.py index d04bd812..e52022ca 100644 --- a/backend/python/transformers/test_transformers.py +++ b/backend/python/transformers/test_transformers.py @@ -18,7 +18,7 @@ class TestBackendServicer(unittest.TestCase): """ This method sets up the gRPC service by starting the server """ - self.service = subprocess.Popen(["python3", "transformers.py", "--addr", "localhost:50051"]) + self.service = subprocess.Popen(["python3", "transformers_server.py", "--addr", "localhost:50051"]) def tearDown(self) -> None: """ diff --git a/backend/python/transformers/transformers.py b/backend/python/transformers/transformers_server.py similarity index 100% rename from backend/python/transformers/transformers.py rename to backend/python/transformers/transformers_server.py