File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed
src/huggingface_hub/inference Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -252,13 +252,14 @@ You might wonder why using [`InferenceClient`] instead of OpenAI's client? There
252
252
| ** Audio** | [ ` ~InferenceClient.audio_classification ` ] | ✅ | ❌ | ❌ | ❌ | ❌ |
253
253
| | [ ` ~InferenceClient.audio_to_audio ` ] | ✅ | ❌ | ❌ | ❌ | ❌ |
254
254
| | [ ` ~InferenceClient.automatic_speech_recognition ` ] | ✅ | ❌ | ✅ | ❌ | ❌ |
255
- | | [ ` ~InferenceClient.text_to_speech ` ] | ✅ | ❌ | ❌ | ❌ | ❌ |
255
+ | | [ ` ~InferenceClient.text_to_speech ` ] | ✅ | ✅ | ❌ | ❌ | ❌ |
256
256
| ** Computer Vision** | [ ` ~InferenceClient.image_classification ` ] | ✅ | ❌ | ❌ | ❌ | ❌ |
257
257
| | [ ` ~InferenceClient.image_segmentation ` ] | ✅ | ❌ | ❌ | ❌ | ❌ |
258
258
| | [ ` ~InferenceClient.image_to_image ` ] | ✅ | ❌ | ❌ | ❌ | ❌ |
259
259
| | [ ` ~InferenceClient.image_to_text ` ] | ✅ | ❌ | ❌ | ❌ | ❌ |
260
260
| | [ ` ~InferenceClient.object_detection ` ] | ✅ | ❌ | ❌ | ❌ | ❌ |
261
261
| | [ ` ~InferenceClient.text_to_image ` ] | ✅ | ✅ | ✅ | ❌ | ✅ |
262
+ | | [ ` ~InferenceClient.text_to_video ` ] | ❌ | ✅ | ✅ | ❌ | ❌ |
262
263
| | [ ` ~InferenceClient.zero_shot_image_classification ` ] | ✅ | ❌ | ❌ | ❌ | ❌ |
263
264
| ** Multimodal** | [ ` ~InferenceClient.document_question_answering ` ] | ✅ | ❌ | ❌ | ❌ | ❌ |
264
265
| | [ ` ~InferenceClient.visual_question_answering ` ] | ✅ | ❌ | ❌ | ❌ | ❌ |
Original file line number Diff line number Diff line change @@ -2714,6 +2714,7 @@ def text_to_speech(
2714
2714
... text="Hello world",
2715
2715
... model="OuteAI/OuteTTS-0.3-500M",
2716
2716
... )
2717
+ >>> Path("hello_world.flac").write_bytes(audio)
2717
2718
```
2718
2719
2719
2720
Example using a third-party provider through Hugging Face Routing. Usage will be billed on your Hugging Face account.
@@ -2727,6 +2728,7 @@ def text_to_speech(
2727
2728
... text="Hello world",
2728
2729
... model="OuteAI/OuteTTS-0.3-500M",
2729
2730
... )
2731
+ >>> Path("hello_world.flac").write_bytes(audio)
2730
2732
```
2731
2733
"""
2732
2734
provider_helper = get_provider_helper (self .provider , task = "text-to-speech" )
Original file line number Diff line number Diff line change @@ -2775,6 +2775,7 @@ async def text_to_speech(
2775
2775
... text="Hello world",
2776
2776
... model="OuteAI/OuteTTS-0.3-500M",
2777
2777
... )
2778
+ >>> Path("hello_world.flac").write_bytes(audio)
2778
2779
```
2779
2780
2780
2781
Example using a third-party provider through Hugging Face Routing. Usage will be billed on your Hugging Face account.
@@ -2788,6 +2789,7 @@ async def text_to_speech(
2788
2789
... text="Hello world",
2789
2790
... model="OuteAI/OuteTTS-0.3-500M",
2790
2791
... )
2792
+ >>> Path("hello_world.flac").write_bytes(audio)
2791
2793
```
2792
2794
"""
2793
2795
provider_helper = get_provider_helper (self .provider , task = "text-to-speech" )
You can’t perform that action at this time.
0 commit comments