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

Fixed issue with missing .copy un U4 #142

Merged
merged 1 commit into from
Sep 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions chapters/en/chapter4/classification_models.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ checkpoint fine-tuned on the Speech Commands dataset, under the namespace [`"MIT
classifier = pipeline(
"audio-classification", model="MIT/ast-finetuned-speech-commands-v2"
)
classifier(sample["audio"])
classifier(sample["audio"].copy())
```
**Output:**
```
Expand All @@ -147,7 +147,6 @@ and verify this is correct:
```
from IPython.display import Audio

classifier(sample["audio"].copy())
Audio(sample["audio"]["array"], rate=sample["audio"]["sampling_rate"])
```

Expand Down
2 changes: 1 addition & 1 deletion chapters/fr/chapter4/classification_models.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ Nous allons charger un *checkpoint* d’un [*transformer* d’audio sous la form
classifier = pipeline(
"audio-classification", model="MIT/ast-finetuned-speech-commands-v2"
)
classifier(sample["audio"])
classifier(sample["audio"].copy())
```

**Sortie :**
Expand Down
3 changes: 1 addition & 2 deletions chapters/ru/chapter4/classification_models.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ sample = next(iter(speech_commands))
classifier = pipeline(
"audio-classification", model="MIT/ast-finetuned-speech-commands-v2"
)
classifier(sample["audio"])
classifier(sample["audio"].copy())
```
**Output:**
```
Expand All @@ -144,7 +144,6 @@ classifier(sample["audio"])
```
from IPython.display import Audio

classifier(sample["audio"].copy())
Audio(sample["audio"]["array"], rate=sample["audio"]["sampling_rate"])
```

Expand Down
Loading