Skip to content

Commit

Permalink
Update docstring (#1954)
Browse files Browse the repository at this point in the history
AudioConverter is registered as "keras_hub.layers.WhisperAudioConverter" and not as part of models.
  • Loading branch information
sachinprasadhs authored Oct 24, 2024
1 parent e24a516 commit a45110e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keras_hub/src/models/whisper/whisper_audio_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class WhisperAudioConverter(AudioConverter):
audio_tensor = tf.ones((8000,), dtype="float32")
# Compute the log-mel spectrogram.
audio_converter = keras_hub.models.WhisperAudioConverter.from_preset(
audio_converter = keras_hub.layers.WhisperAudioConverter.from_preset(
"whisper_base_en",
)
audio_converter(audio_tensor)
Expand Down

0 comments on commit a45110e

Please sign in to comment.