Commit 8f4eabb
Correctly handle unbatched audio inputs in Gemma3nAudioFeatureExtractor (huggingface#42076)
* Correctly handle unbatched audio inputs in Gemma3nAudioFeatureExtractor
* Simplify the logic for batching the unbatched speech input in Gemma3nAudioFeatureExtractor1 parent 5754c67 commit 8f4eabb
File tree
2 files changed
+11
-7
lines changed- src/transformers/models/gemma3n
- tests/models/gemma3n
2 files changed
+11
-7
lines changedLines changed: 4 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
315 | 312 | | |
316 | 313 | | |
317 | 314 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
231 | 238 | | |
232 | 239 | | |
233 | 240 | | |
| |||
0 commit comments