Skip to content

Commit

Permalink
Black fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ross-p-smith committed Feb 20, 2024
1 parent 56caa4c commit f3abef6
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/psf/black
rev: 23.12.1
rev: 24.2.0
hooks:
- id: black
language_version: python3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@ def get_all_files(self):
}
)
else:
converted_files[
blob.name
] = f"https://{self.account_name}.blob.core.windows.net/{self.container_name}/{blob.name}?{sas}"
converted_files[blob.name] = (
f"https://{self.account_name}.blob.core.windows.net/{self.container_name}/{blob.name}?{sas}"
)

for file in files:
converted_filename = file.pop("converted_filename", "")
Expand Down
6 changes: 3 additions & 3 deletions code/backend/batch/utilities/helpers/EnvHelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ def __init__(self, **kwargs) -> None:
self.OPENAI_API_KEY = self.AZURE_OPENAI_KEY
self.OPENAI_API_VERSION = self.AZURE_OPENAI_API_VERSION
os.environ["OPENAI_API_TYPE"] = self.OPENAI_API_TYPE
os.environ[
"OPENAI_API_BASE"
] = f"https://{os.getenv('AZURE_OPENAI_RESOURCE')}.openai.azure.com/"
os.environ["OPENAI_API_BASE"] = (
f"https://{os.getenv('AZURE_OPENAI_RESOURCE')}.openai.azure.com/"
)
os.environ["OPENAI_API_KEY"] = self.OPENAI_API_KEY
os.environ["OPENAI_API_VERSION"] = self.OPENAI_API_VERSION
# Azure Functions - Batch processing
Expand Down
12 changes: 6 additions & 6 deletions code/backend/pages/04_Configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@
if "post_answering_prompt" not in st.session_state:
st.session_state["post_answering_prompt"] = config.prompts.post_answering_prompt
if "enable_post_answering_prompt" not in st.session_state:
st.session_state[
"enable_post_answering_prompt"
] = config.prompts.enable_post_answering_prompt
st.session_state["enable_post_answering_prompt"] = (
config.prompts.enable_post_answering_prompt
)
if "post_answering_filter_message" not in st.session_state:
st.session_state[
"post_answering_filter_message"
] = config.messages.post_answering_filter
st.session_state["post_answering_filter_message"] = (
config.messages.post_answering_filter
)
if "enable_content_safety" not in st.session_state:
st.session_state["enable_content_safety"] = config.prompts.enable_content_safety

Expand Down

0 comments on commit f3abef6

Please sign in to comment.