Skip to content

Commit

Permalink
fix: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
kmaphoenix committed Nov 26, 2024
1 parent eb99b9d commit 7496a76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/dfcx_scrapi/core/scrapi_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def dict_to_struct(some_dict: Dict[str, Any]):
def str_to_dict(some_str: str) -> Dict[str, Any]:
"""Safe convert str to Dict or fail."""
try:
return json.loads(some_str)
return json.loads(some_str)
except json.JSONDecodeError as err:
raise ValueError(f"Invalid JSON string: `{some_str}`") from err

Expand Down
2 changes: 1 addition & 1 deletion src/dfcx_scrapi/tools/evaluations.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ def run_detect_intent_queries(self, df: pd.DataFrame) -> pd.DataFrame:
if row["action_type"] != "User Utterance":
continue

session_parameters = None
session_parameters = None

if "session_parameters" in row:
session_parameters = self.str_to_dict(row["session_parameters"])
Expand Down

0 comments on commit 7496a76

Please sign in to comment.