Closed choiHkk closed 2 weeks ago
This PR addresses the warning message about the sampling rate discussed in #41 . The code has been updated based on the latest commit, modifying only the parts where the sampling rate is declared and passed to the feature extractor.
... batch = self.feature_extractor( audios, return_tensors="pt", padding=self.padding, max_length=self.max_length ) ...
... sampling_rate = self.feature_extractor.sampling_rate batch = self.feature_extractor( audios, sampling_rate=sampling_rate, return_tensors="pt", padding=self.padding, max_length=self.max_length ) ...
This PR addresses the warning message about the sampling rate discussed in #41 . The code has been updated based on the latest commit, modifying only the parts where the sampling rate is declared and passed to the feature extractor.
before
after