-
Notifications
You must be signed in to change notification settings - Fork 608
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support asyncio with AsyncInferenceClient (#1524)
* prepare for async * more stuff * comments * add aiohttp to deps * prepare script to generate AsyncInferenceClient * some progress * more progress * make methods async * await post calls * remove examples in AsyncClient * working generating script? * make async * explicit regexes * working AsyncInferenceClient * moving further * closer to a solution * more explicit? * fix typing * fix tests * fix tests for real * Examples in async client * adapt async text generation code * better handling of errors * first async tests * fix tests for python3.7 * add sentence_similarity tests * reference * docs * fix setup.py * docs * fix styling * fix tests * fix zero-shot task * fix zero class * Move _async_client.py to a _generated/ folder * add copyright to tests * fix imports * fix import * fix async text_generation return type when stream=True * test async methods signatures
- Loading branch information
Showing
25 changed files
with
3,272 additions
and
241 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.