Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
43299c63
"...git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "36362cf08637dea5aa00f209067e9c17b0bb2a69"
Unverified
Commit
43299c63
authored
Mar 02, 2023
by
Arthur
Committed by
GitHub
Mar 02, 2023
Browse files
fix checkpoint (#21874)
parent
89359e4c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/pipelines/zero_shot_audio_classification.py
src/transformers/pipelines/zero_shot_audio_classification.py
+1
-1
No files found.
src/transformers/pipelines/zero_shot_audio_classification.py
View file @
43299c63
...
...
@@ -32,7 +32,7 @@ class ZeroShotAudioClassificationPipeline(ChunkPipeline):
>>> dataset = load_dataset("ashraq/esc50")
>>> audio = next(iter(dataset["train"]["audio"]))["array"]
>>> classifier = pipeline(task="zero-shot-audio-classification", model="laion
-ai
/clap-htsat-
tiny
")
>>> classifier = pipeline(task="zero-shot-audio-classification", model="laion/clap-htsat-
unfused
")
>>> classifier(audio, candidate_labels=["Sound of a dog", "Sound of vaccum cleaner"])
```
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment