Skip to content

Conversation

@viktor2077
Copy link
Contributor

This PR refactors the NovitaTextToVideoTask using the async API, aiming to allow inference with models that may take over 2 minutes to generate results.

Copy link
Contributor

@SBrandeis SBrandeis left a comment

Choose a reason for hiding this comment

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

Hey there - thank you for your contribution!

I have left a few comments and suggestions about typing and code style

Excited to see Novita's text-to-video service on the platform!

@viktor2077
Copy link
Contributor Author

I have left a few comments and suggestions about typing and code style

Thanks @SBrandeis , these suggestions are detailed and helpful!

@hanouticelina hanouticelina added the inference-providers integration of a new or existing Inference Provider label May 20, 2025
@viktor2077 viktor2077 requested a review from SBrandeis May 21, 2025 02:12
Copy link
Contributor

@SBrandeis SBrandeis left a comment

Choose a reason for hiding this comment

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

Nice!
Apart from that typing issue, it looks good to me.
Don't forget to run pnpm format and pnpm lint in the packages/inference folder to conform our code quality checks.

@viktor2077 viktor2077 requested a review from SBrandeis May 22, 2025 12:44
@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Copy link
Contributor

@SBrandeis SBrandeis left a comment

Choose a reason for hiding this comment

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

Looks good to me!
Defering to @hanouticelina for a second pair of eyes 👀
Thanks @viktor2077

Copy link
Contributor

@hanouticelina hanouticelina left a comment

Choose a reason for hiding this comment

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

Thanks @viktor2077 for the PR, and sorry again for the delay! 🤗
I’ve tested it with direct calls to Novita and everything works as expected.
I also opened a server-side PR to allow GET requests through Hugging Face routing — I’ll merge this as soon as that’s deployed.

@SBrandeis SBrandeis merged commit 24f86c7 into huggingface:main May 27, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

inference-providers integration of a new or existing Inference Provider

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants