From b36e5a6edf332afd90184f783b6b33583efcb199 Mon Sep 17 00:00:00 2001 From: ArpitGaur Date: Wed, 15 May 2024 09:49:02 +0100 Subject: [PATCH 1/3] apply pep8 leftover file from pr-merge --- ...mputerVisionClient.py => test_azure_computer_vision_client.py} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename code/tests/utilities/helpers/{test_AzureComputerVisionClient.py => test_azure_computer_vision_client.py} (100%) diff --git a/code/tests/utilities/helpers/test_AzureComputerVisionClient.py b/code/tests/utilities/helpers/test_azure_computer_vision_client.py similarity index 100% rename from code/tests/utilities/helpers/test_AzureComputerVisionClient.py rename to code/tests/utilities/helpers/test_azure_computer_vision_client.py From 72fe07ca60329484d154512041ae44461eab92b6 Mon Sep 17 00:00:00 2001 From: ArpitGaur Date: Wed, 15 May 2024 10:06:13 +0100 Subject: [PATCH 2/3] fix casing of admin from streamlit commands --- .vscode/launch.json | 2 +- docker/Admin.Dockerfile | 2 +- infra/app/adminweb.bicep | 2 +- infra/main.json | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 1faabbe09..a07ef8919 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -15,7 +15,7 @@ "module": "streamlit", "args": [ "run", - "Admin.py" + "admin.py" ], "cwd": "${workspaceFolder}/code/backend", "preLaunchTask": "poetry install", diff --git a/docker/Admin.Dockerfile b/docker/Admin.Dockerfile index 249c716d8..f7bb778ed 100644 --- a/docker/Admin.Dockerfile +++ b/docker/Admin.Dockerfile @@ -9,4 +9,4 @@ COPY ./code/backend/batch/utilities /usr/local/src/myscripts/utilities WORKDIR /usr/local/src/myscripts/admin ENV PYTHONPATH "${PYTHONPATH}:/usr/local/src/myscripts/" EXPOSE 80 -CMD ["streamlit", "run", "Admin.py", "--server.port", "80", "--server.enableXsrfProtection", "false"] \ No newline at end of file +CMD ["streamlit", "run", "admin.py", "--server.port", "80", "--server.enableXsrfProtection", "false"] \ No newline at end of file diff --git a/infra/app/adminweb.bicep b/infra/app/adminweb.bicep index 6363eb3ee..ebed298a5 100644 --- a/infra/app/adminweb.bicep +++ b/infra/app/adminweb.bicep @@ -6,7 +6,7 @@ param formRecognizerName string = '' param contentSafetyName string = '' param allowedOrigins array = [] param appServicePlanId string -param appCommandLine string = 'python -m streamlit run Admin.py --server.port 8000 --server.address 0.0.0.0 --server.enableXsrfProtection false' +param appCommandLine string = 'python -m streamlit run admin.py --server.port 8000 --server.address 0.0.0.0 --server.enableXsrfProtection false' param runtimeName string = 'python' param runtimeVersion string = '' param applicationInsightsName string = '' diff --git a/infra/main.json b/infra/main.json index 915088a7c..1167dc049 100644 --- a/infra/main.json +++ b/infra/main.json @@ -3927,7 +3927,7 @@ }, "appCommandLine": { "type": "string", - "defaultValue": "python -m streamlit run Admin.py --server.port 8000 --server.address 0.0.0.0 --server.enableXsrfProtection false" + "defaultValue": "python -m streamlit run admin.py --server.port 8000 --server.address 0.0.0.0 --server.enableXsrfProtection false" }, "runtimeName": { "type": "string", @@ -4855,7 +4855,7 @@ }, "appCommandLine": { "type": "string", - "defaultValue": "python -m streamlit run Admin.py --server.port 8000 --server.address 0.0.0.0 --server.enableXsrfProtection false" + "defaultValue": "python -m streamlit run admin.py --server.port 8000 --server.address 0.0.0.0 --server.enableXsrfProtection false" }, "runtimeName": { "type": "string", From c29b64bad1840bef08cc9bc7d44921cb9f646c90 Mon Sep 17 00:00:00 2001 From: ArpitGaur Date: Wed, 15 May 2024 10:40:20 +0100 Subject: [PATCH 3/3] fix main for now - temporarily --- .vscode/launch.json | 2 +- docker/Admin.Dockerfile | 2 +- infra/app/adminweb.bicep | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index a07ef8919..1faabbe09 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -15,7 +15,7 @@ "module": "streamlit", "args": [ "run", - "admin.py" + "Admin.py" ], "cwd": "${workspaceFolder}/code/backend", "preLaunchTask": "poetry install", diff --git a/docker/Admin.Dockerfile b/docker/Admin.Dockerfile index f7bb778ed..249c716d8 100644 --- a/docker/Admin.Dockerfile +++ b/docker/Admin.Dockerfile @@ -9,4 +9,4 @@ COPY ./code/backend/batch/utilities /usr/local/src/myscripts/utilities WORKDIR /usr/local/src/myscripts/admin ENV PYTHONPATH "${PYTHONPATH}:/usr/local/src/myscripts/" EXPOSE 80 -CMD ["streamlit", "run", "admin.py", "--server.port", "80", "--server.enableXsrfProtection", "false"] \ No newline at end of file +CMD ["streamlit", "run", "Admin.py", "--server.port", "80", "--server.enableXsrfProtection", "false"] \ No newline at end of file diff --git a/infra/app/adminweb.bicep b/infra/app/adminweb.bicep index ebed298a5..6363eb3ee 100644 --- a/infra/app/adminweb.bicep +++ b/infra/app/adminweb.bicep @@ -6,7 +6,7 @@ param formRecognizerName string = '' param contentSafetyName string = '' param allowedOrigins array = [] param appServicePlanId string -param appCommandLine string = 'python -m streamlit run admin.py --server.port 8000 --server.address 0.0.0.0 --server.enableXsrfProtection false' +param appCommandLine string = 'python -m streamlit run Admin.py --server.port 8000 --server.address 0.0.0.0 --server.enableXsrfProtection false' param runtimeName string = 'python' param runtimeVersion string = '' param applicationInsightsName string = ''