Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

transformers.js support #479

Closed
wants to merge 16 commits into from
Closed

transformers.js support #479

wants to merge 16 commits into from

Conversation

pelikhan
Copy link
Member

@pelikhan pelikhan commented May 24, 2024

Hugging face transformer.js support.

@microsoft microsoft deleted a comment from github-actions bot Jun 1, 2024
@microsoft microsoft deleted a comment from github-actions bot Jun 1, 2024
Copy link

github-actions bot commented Jun 1, 2024

Markdown: Lightweight markup language for formatting plaintext, created by John Gruber in 2004. Differentiates from WYSIWYG editors; uses syntax like number signs and asterisks to format text. Visual Studio Code editor can display Markdown files.

Markdown Syntax Example: Headings are denoted with "# Heading One", bold phrases use "this text is bold". Adapting to Markdown requires patience, especially for those used to WYSIWYG applications like Microsoft Word. Visual Studio Code editor can showcase Markdown formatting effectively.

generated by genaiscript summarize.

@pelikhan pelikhan marked this pull request as draft June 3, 2024 13:05
@pelikhan
Copy link
Member Author

/genai-review

2 similar comments
@pelikhan
Copy link
Member Author

/genai-review

@pelikhan
Copy link
Member Author

/genai-review

@pelikhan
Copy link
Member Author

/genai-describe

8 similar comments
@pelikhan
Copy link
Member Author

/genai-describe

@pelikhan
Copy link
Member Author

/genai-describe

@pelikhan
Copy link
Member Author

/genai-describe

@pelikhan
Copy link
Member Author

/genai-describe

@pelikhan
Copy link
Member Author

/genai-describe

@pelikhan
Copy link
Member Author

/genai-describe

@pelikhan
Copy link
Member Author

/genai-describe

@pelikhan
Copy link
Member Author

/genai-describe

@pelikhan
Copy link
Member Author

/genai-describe

3 similar comments
@pelikhan
Copy link
Member Author

/genai-describe

@pelikhan
Copy link
Member Author

/genai-describe

@pelikhan
Copy link
Member Author

/genai-describe

@@ -45,10 +45,10 @@ export class TestHost implements Host {
return resolve(".")
}
installFolder(): string {
Copy link

Choose a reason for hiding this comment

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

The method installFolder has been changed to return this.projectFolder(). Please ensure that this.projectFolder() is always defined and does not throw an error. 🧐

generated by pr-review-commit unhandled_error

resolvePath(...segments: string[]): string {
throw new Error("Method not implemented.")
resolvePath(...segments: string[]) {
return resolve(...segments)
Copy link

Choose a reason for hiding this comment

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

The method resolvePath has been changed to return resolve(...segments). Please ensure that resolve function is always defined and does not throw an error. 🧐

generated by pr-review-commit unhandled_error

})
const out = (await pipe(text)) as TextClassificationOutput
console.log(out)
return out[0]
Copy link

Choose a reason for hiding this comment

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

The sentiment function does not handle any errors that may occur during the execution of the pipeline function or the pipe function. Please add error handling to ensure the function fails gracefully. 😊

generated by pr-review-commit unhandled_error

@pelikhan pelikhan closed this Jul 3, 2024
@pelikhan pelikhan deleted the xenova branch July 3, 2024 04:35
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.

1 participant