mazesmazes commited on
Commit
d03e91a
·
verified ·
1 Parent(s): 41fa6a5

Update custom model files, README, and requirements

Browse files
Files changed (2) hide show
  1. asr_modeling.py +1 -1
  2. asr_processing.py +1 -1
asr_modeling.py CHANGED
@@ -38,7 +38,7 @@ class ASRModel(PreTrainedModel, GenerationMixin):
38
  _is_loading_from_pretrained: bool = False
39
  _pretrained_model_path: Optional[str] = None
40
 
41
- TRANSCRIBE_PROMPT = "Transcribe speech to text"
42
 
43
  @classmethod
44
  def from_pretrained(cls, pretrained_model_name_or_path: str, *args, **kwargs) -> "ASRModel":
 
38
  _is_loading_from_pretrained: bool = False
39
  _pretrained_model_path: Optional[str] = None
40
 
41
+ TRANSCRIBE_PROMPT = ""
42
 
43
  @classmethod
44
  def from_pretrained(cls, pretrained_model_name_or_path: str, *args, **kwargs) -> "ASRModel":
asr_processing.py CHANGED
@@ -17,7 +17,7 @@ class ASRProcessor(ProcessorMixin):
17
  feature_extractor_class = "AutoFeatureExtractor"
18
  tokenizer_class = "AutoTokenizer"
19
  AUDIO_TOKEN = "<audio>"
20
- TRANSCRIBE_PROMPT = "Transcribe speech to text"
21
  # Default conv layers for Whisper/GLM-ASR: [(pad, kernel, stride), ...]
22
  DEFAULT_ENCODER_CONV_LAYERS = [(1, 3, 1), (1, 3, 2)]
23
 
 
17
  feature_extractor_class = "AutoFeatureExtractor"
18
  tokenizer_class = "AutoTokenizer"
19
  AUDIO_TOKEN = "<audio>"
20
+ TRANSCRIBE_PROMPT = ""
21
  # Default conv layers for Whisper/GLM-ASR: [(pad, kernel, stride), ...]
22
  DEFAULT_ENCODER_CONV_LAYERS = [(1, 3, 1), (1, 3, 2)]
23