Skip to content

Commit

Permalink
fix type checking
Browse files Browse the repository at this point in the history
  • Loading branch information
huiwengoh committed Aug 27, 2024
1 parent 9c1322f commit ab54729
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cleanlab_studio/studio/trustworthy_language_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ async def get_trustworthiness_score_async(
processed_response = process_response_and_kwargs(response, kwargs)

async with aiohttp.ClientSession() as session:
if isinstance(prompt, str) and isinstance(processed_response, str):
if isinstance(prompt, str) and isinstance(processed_response, dict):
trustworthiness_score = await self._get_trustworthiness_score_async(
prompt,
processed_response,
Expand Down

0 comments on commit ab54729

Please sign in to comment.