Skip to content

Conversation

@samhita-alla
Copy link
Contributor

@samhita-alla samhita-alla commented Jul 5, 2023

This PR makes the textstat library optional in the Flyte callback handler.

@hinthornw, would you mind reviewing this PR since you merged the flyte callback handler code previously?

Signed-off-by: Samhita Alla <[email protected]>
@vercel
Copy link

vercel bot commented Jul 5, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
langchain ⬜️ Ignored (Inspect) Jul 5, 2023 4:57pm

@samhita-alla samhita-alla changed the title make textstat optional in flyte callback handler make textstat optional in the flyte callback handler Jul 5, 2023
resp.update({"text_complexity_metrics": text_complexity_metrics})
resp.update(text_complexity_metrics)
if textstat is not None:
textstat = import_textstat()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this doesnt need to be here any more, right

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right. Removed the import.

Signed-off-by: Samhita Alla <[email protected]>
@hwchase17 hwchase17 merged commit 6f358bb into langchain-ai:master Jul 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants