Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Commit

Permalink
fix: Linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
iusztinpaul committed Oct 25, 2023
1 parent 7390563 commit 92f3fc6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modules/financial_bot/financial_bot/langchain_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ def build_chain(self) -> chains.SequentialChain:
try:
comet_project_name = os.environ["COMET_PROJECT_NAME"]
except KeyError:
raise RuntimeError("Please set the COMET_PROJECT_NAME environment variable.")
raise RuntimeError(
"Please set the COMET_PROJECT_NAME environment variable."
)
llm_generator_chain = FinancialBotQAChain(
hf_pipeline=self._llm_agent,
template=self._llm_template,
Expand Down Expand Up @@ -211,7 +213,7 @@ def __init__(
self._llm_qlora_model_id = llm_qlora_model_id
self._llm_inference_max_new_tokens = llm_inference_max_new_tokens
self._llm_inference_temperature = llm_inference_temperature

def on_chain_end(self, outputs: Dict[str, Any], **kwargs: Any) -> None:
should_log_prompt = "metadata" in kwargs
if should_log_prompt:
Expand Down

0 comments on commit 92f3fc6

Please sign in to comment.