Skip to content

Commit

Permalink
Merge branch 'main' into PSL_6635
Browse files Browse the repository at this point in the history
  • Loading branch information
Fr4nc3 authored Sep 16, 2024
2 parents b24417f + 53b899c commit d63f678
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def validate_config(config: dict):
and unsupported_advanced_image_processing_file_type
):
raise Exception(
f"Advanced image processing has been enabled for document type {document_type}, but only {ADVANCED_IMAGE_PROCESSING_FILE_TYPES} file types are supported."
f"Advanced image processing has not been enabled for document type {document_type}, as only {ADVANCED_IMAGE_PROCESSING_FILE_TYPES} file types are supported."
)

@staticmethod
Expand Down
5 changes: 2 additions & 3 deletions code/backend/pages/04_Configuration.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import os
import sys
import traceback
import json
import jsonschema
import streamlit as st
Expand Down Expand Up @@ -459,5 +458,5 @@ def validate_documents():
del st.session_state["reset"]
del st.session_state["reset_configuration"]

except Exception:
st.error(traceback.format_exc())
except Exception as e:
st.error(e)
2 changes: 1 addition & 1 deletion code/tests/utilities/helpers/test_config_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ def test_save_config_as_active_validates_advanced_image_file_types_are_valid(

# then
assert str(e.value) == (
"Advanced image processing has been enabled for document type txt, but only ['jpeg', 'jpg', 'png', 'tiff', 'bmp'] file types are supported."
"Advanced image processing has not been enabled for document type txt, as only ['jpeg', 'jpg', 'png', 'tiff', 'bmp'] file types are supported."
)
AzureBlobStorageClientMock.assert_not_called()

Expand Down
63 changes: 43 additions & 20 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ packages = [
[tool.poetry.dependencies]
python = "^3.10"
azure-functions = "1.20.0"
streamlit = "1.37.1"
streamlit = "1.38.0"
python-dotenv = "1.0.1"
azure-ai-formrecognizer = "3.3.3"
azure-storage-blob = "12.20.0"
Expand All @@ -37,7 +37,7 @@ opentelemetry-instrumentation-httpx = "^0.48b0"
pillow = "10.4.0"
azure-mgmt-cognitiveservices = "^13.5.0"
jsonschema = "^4.23.0"
semantic-kernel = {version = "1.8.0", python = "<3.13"}
semantic-kernel = {version = "1.3.0", python = "<3.13"}
azure-ai-ml = "^1.19.0"

[tool.poetry.group.dev.dependencies]
Expand Down

0 comments on commit d63f678

Please sign in to comment.