Skip to content

Commit c0f853a

Browse files
committed
fix again
1 parent d7e14e3 commit c0f853a

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

docs/api-inference/tasks/audio-classification.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ For more details about the `audio-classification` task, check out its [dedicated
2929

3030
### Recommended models
3131

32-
- [ehcalabres/wav2vec2-lg-xlsr-en-speech-emotion-recognition](https://huggingface.co/ehcalabres/wav2vec2-lg-xlsr-en-speech-emotion-recognition): An emotion recognition model.
3332

3433
This is only a subset of the supported models. Find the model that suits you best [here](https://huggingface.co/models?inference=warm&pipeline_tag=audio-classification&sort=trending).
3534

@@ -40,7 +39,7 @@ This is only a subset of the supported models. Find the model that suits you bes
4039

4140
<curl>
4241
```bash
43-
curl https://api-inference.huggingface.co/models/ehcalabres/wav2vec2-lg-xlsr-en-speech-emotion-recognition \
42+
curl https://api-inference.huggingface.co/models/<REPO_ID> \
4443
-X POST \
4544
--data-binary '@sample1.flac' \
4645
-H "Authorization: Bearer hf_***"
@@ -52,7 +51,7 @@ curl https://api-inference.huggingface.co/models/ehcalabres/wav2vec2-lg-xlsr-en-
5251
```py
5352
import requests
5453

55-
API_URL = "https://api-inference.huggingface.co/models/ehcalabres/wav2vec2-lg-xlsr-en-speech-emotion-recognition"
54+
API_URL = "https://api-inference.huggingface.co/models/<REPO_ID>"
5655
headers = {"Authorization": "Bearer hf_***"}
5756

5857
def query(filename):
@@ -72,7 +71,7 @@ To use the Python client, see `huggingface_hub`'s [package reference](https://hu
7271
async function query(filename) {
7372
const data = fs.readFileSync(filename);
7473
const response = await fetch(
75-
"https://api-inference.huggingface.co/models/ehcalabres/wav2vec2-lg-xlsr-en-speech-emotion-recognition",
74+
"https://api-inference.huggingface.co/models/<REPO_ID>",
7675
{
7776
headers: {
7877
Authorization: "Bearer hf_***"

docs/api-inference/tasks/chat-completion.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ To use the JavaScript client, see `huggingface.js`'s [package reference](https:/
110110
| **max_tokens** | _integer_ | The maximum number of tokens that can be generated in the chat completion. |
111111
| **messages*** | _object[]_ | A list of messages comprising the conversation so far. |
112112
| **&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;content*** | _unknown_ | One of the following: |
113-
| **&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(#1)*** | _string_ | |
114-
| **&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(#2)*** | _object[]_ | |
113+
| **&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(#1)** | _string_ | |
114+
| **&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(#2)** | _object[]_ | |
115115
| **&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(#1)** | _object_ | |
116116
| **&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;text*** | _string_ | |
117117
| **&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;type*** | _enum_ | Possible values: text. |

scripts/api-inference/scripts/generate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ function processPayloadSchema(schema: any): JsonObject[] {
271271
processSchemaNode(
272272
`${NBSP}(#${index + 1})`,
273273
subSchema,
274-
isRequired,
274+
false,
275275
parentPrefix + TABLE_INDENT,
276276
);
277277
});

0 commit comments

Comments
 (0)