File tree 4 files changed +10
-6
lines changed
src/huggingface_hub/inference/_generated/types
4 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -76,10 +76,11 @@ class AutomaticSpeechRecognitionGenerationParameters(BaseInferenceType):
76
76
class AutomaticSpeechRecognitionParameters (BaseInferenceType ):
77
77
"""Additional inference parameters for Automatic Speech Recognition"""
78
78
79
- generation_parameters : Optional [AutomaticSpeechRecognitionGenerationParameters ] = None
80
- """Parametrization of the text generation process"""
81
79
return_timestamps : Optional [bool ] = None
82
80
"""Whether to output corresponding timestamps with the generated text"""
81
+ # Will be deprecated in the future when the renaming to `generation_parameters` is implemented in transformers
82
+ generate_kwargs : Optional [AutomaticSpeechRecognitionGenerationParameters ] = None
83
+ """Parametrization of the text generation process"""
83
84
84
85
85
86
@dataclass
Original file line number Diff line number Diff line change @@ -76,10 +76,11 @@ class ImageToTextGenerationParameters(BaseInferenceType):
76
76
class ImageToTextParameters (BaseInferenceType ):
77
77
"""Additional inference parameters for Image To Text"""
78
78
79
- generation_parameters : Optional [ImageToTextGenerationParameters ] = None
80
- """Parametrization of the text generation process"""
81
79
max_new_tokens : Optional [int ] = None
82
80
"""The amount of maximum tokens to generate."""
81
+ # Will be deprecated in the future when the renaming to `generation_parameters` is implemented in transformers
82
+ generate_kwargs : Optional [ImageToTextGenerationParameters ] = None
83
+ """Parametrization of the text generation process"""
83
84
84
85
85
86
@dataclass
Original file line number Diff line number Diff line change @@ -76,7 +76,8 @@ class TextToAudioGenerationParameters(BaseInferenceType):
76
76
class TextToAudioParameters (BaseInferenceType ):
77
77
"""Additional inference parameters for Text To Audio"""
78
78
79
- generation_parameters : Optional [TextToAudioGenerationParameters ] = None
79
+ # Will be deprecated in the future when the renaming to `generation_parameters` is implemented in transformers
80
+ generate_kwargs : Optional [TextToAudioGenerationParameters ] = None
80
81
"""Parametrization of the text generation process"""
81
82
82
83
Original file line number Diff line number Diff line change @@ -76,7 +76,8 @@ class TextToSpeechGenerationParameters(BaseInferenceType):
76
76
class TextToSpeechParameters (BaseInferenceType ):
77
77
"""Additional inference parameters for Text To Speech"""
78
78
79
- generation_parameters : Optional [TextToSpeechGenerationParameters ] = None
79
+ # Will be deprecated in the future when the renaming to `generation_parameters` is implemented in transformers
80
+ generate_kwargs : Optional [TextToSpeechGenerationParameters ] = None
80
81
"""Parametrization of the text generation process"""
81
82
82
83
You can’t perform that action at this time.
0 commit comments